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 %p
%fieldset %fieldset
= f.check_box :sent_to_all, :onchange => "Element.toggle('recipients')" - if APP_CONFIG[:mailing_list].blank?
gesamte Foodcoop = 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 %table#recipients
%tr %tr
%td %td

View file

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