New foodcoop configuration option. Use own mailinglist instead of messaging system.

This commit is contained in:
Benjamin Meichsner 2009-03-17 18:13:00 +01:00
parent 312e51e8dc
commit e4c394d881
2 changed files with 17 additions and 6 deletions

View file

@ -5,8 +5,19 @@
%p
%fieldset
- if APP_CONFIG[:mailing_list].blank?
= f.check_box :sent_to_all, :onchange => "Element.toggle('recipients')"
gesamte Foodcoop
- else
%b Nachrichten an alle
verschickst Du bitte über den Verteiler:
= mail_to APP_CONFIG[:mailing_list]
%br/
%small{:style => "color:grey"}
Eventuell musst Du Dich dem Verteiler erst bekannt machen.
%br/
z.b. mit einer Mail an
= mail_to APP_CONFIG[:mailing_list_subscribe]
%table#recipients
%tr
%td

View file

@ -21,14 +21,15 @@ development: &defaults
price_markup: 2.0
# email address to be used as sender
email_sender: foodsoft@myfoodcoop.org
# Config for the exception_notification plugin
# If your foodcoop uses a mailing list instead of internal messaging system
#mailing_list: list@myfoodcoop.org
#mailing_list_subscribe: list-subscribe@myfoodcoop.org
# Config for the exception_notification plugin
notification:
error_recipients:
- admin@myfoodcoop.org
sender_address: "\"FoodSoft Error\" <foodsoft@myfoodcoop.org>"
email_prefix: "[FoodSoft]"
# Access to sharedLists, the external article-database
shared_lists:
adapter: mysql
@ -38,7 +39,6 @@ development: &defaults
password:
encoding: utf8
socket: /opt/lampp/var/mysql/mysql.sock
# auto-units-conversion
# this is used for automatic article-synchronization to handle different units
# e.g. when foodcoop-unit should be 500g and supplier-unit is 1kg