Refactoring of message system.
This commit is contained in:
parent
a0e10141dc
commit
3ea8d5a2ef
21 changed files with 94 additions and 113 deletions
|
|
@ -15,5 +15,3 @@ To accept the invitation and to join the foodcoop please follow this link: <%= @
|
|||
This link works only once and expires on <%= @invite.expires_at.strftime('%A den %d.%m.%Y um %H:%M') %>.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
|
||||
<%= render :partial => 'shared/mail_footer' %>
|
||||
|
|
@ -9,6 +9,4 @@ An: <%= @recipients %>
|
|||
|
||||
Antworten: <%= @reply %>
|
||||
Nachricht online einsehen: <%= @link %>
|
||||
Nachrichten-Einstellungen: <%= @profile %>
|
||||
|
||||
<%= render :partial => 'shared/mail_footer' %>
|
||||
Nachrichten-Einstellungen: <%= @profile %>
|
||||
|
|
|
|||
9
app/views/mailer/negative_balance.html.erb
Normal file
9
app/views/mailer/negative_balance.html.erb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Liebe <%= @group.name %>,
|
||||
|
||||
euer Kontostand ist durch eine Buchung am <%= @transaction.created_on.strftime('%d.%m.%Y um %H:%M') %> ins Minus gerutscht: <%= @group.account_balance %>
|
||||
|
||||
Es wurden <%= @transaction.amount %> für "<%= @transaction.note %>" abgebucht, die Buchung wurde von <%= @transaction.user.nick %> erstellt.
|
||||
|
||||
Bitte zahlt so bald wie möglich wieder Geld ein, um das Gruppenkonto auszugleichen.
|
||||
|
||||
Viele Grüße von <%= APP_CONFIG[:name] %>
|
||||
14
app/views/mailer/order_result.html.erb
Normal file
14
app/views/mailer/order_result.html.erb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Liebe <%= @group_order.group.name %>,
|
||||
|
||||
die Bestellung für "<%= @order.name %>" wurde am <%= @order.ends.strftime('%d.%m.%Y um %H:%M') %> von <%= @order.updated_by.nick %> beendet.
|
||||
|
||||
Für Euch wurden die folgenden Artikel bestellt:
|
||||
<% for group_order_article in @group_order.group_order_articles.all(:include => :order_article)
|
||||
article = group_order_article.order_article.article -%>
|
||||
<%= article.name %>: <%= group_order_article.quantity %> x <%= article.unit %> = <%= group_order_article.quantity * article.fc_price %>
|
||||
<% end -%>
|
||||
Gesamtpreis: <%= @group_order.price %>
|
||||
|
||||
Bestellung online einsehen: <%= "#{APP_CONFIG[:base_url]}/ordering/my_order_result/#{@order.id}" %>
|
||||
|
||||
Viele Grüße von <%= APP_CONFIG[:name] %>
|
||||
|
|
@ -16,5 +16,3 @@ This link works only once and expires on <%= @user.reset_password_expires.strfti
|
|||
If you don't want to change your password, just ignore this message. Your password hasn't been changed yet.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
|
||||
<%= render :partial => 'shared/mail_footer' %>
|
||||
|
|
@ -11,7 +11,6 @@ Aufgaben für die nächste Woche:
|
|||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
Viele Grüße von <%= APP_CONFIG[:name] %>
|
||||
Meine Aufgaben: <%= APP_CONFIG[:base_url] %>/home/tasks
|
||||
|
||||
--
|
||||
Meine Aufgaben: <%= APP_CONFIG[:base_url] %>/home/tasks
|
||||
Viele Grüße von <%= APP_CONFIG[:name] %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue