Big feactoring and bug fixing, Mailer, Tasks, GroupOrders
This commit is contained in:
parent
c936813967
commit
5fb0bc2444
43 changed files with 95 additions and 118 deletions
|
|
@ -1,9 +1,3 @@
|
|||
Foodsoft-Nachricht
|
||||
|
||||
Von: <%= @message.sender.nick %>
|
||||
|
||||
======================================================================
|
||||
|
||||
<%= @message.body %>
|
||||
|
||||
======================================================================
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ Hallo!
|
|||
|
||||
<%= @invite.user.first_name %> <%= @invite.user.last_name %> (<%= @invite.user.email %>) hat dich in die Gruppe "<%= @invite.group.name %>" eingeladen.
|
||||
Um die Einladung anzunehmen und der Foodcoop beizutreten, gehe zu: <%= @link %>
|
||||
Dieser Link kann nur einmal aufgerufen werden und ist nur bis <%= @invite.expires_at.strftime('%A den %d.%m.%Y um %H:%M') %> gültig.
|
||||
Dieser Link kann nur einmal aufgerufen werden und ist nur bis <%= I18n.l @invite.expires_at %> gültig.
|
||||
|
||||
Grüße sendet die Foodsoft!
|
||||
|
||||
|
|
@ -12,6 +12,6 @@ Hi!
|
|||
|
||||
<%= @invite.user.first_name %> <%= @invite.user.last_name %> (<%= @invite.user.email %>) has invited you to join the group "<%= @invite.group.name %>".
|
||||
To accept the invitation and to join the foodcoop please follow this link: <%= @link %>
|
||||
This link works only once and expires on <%= @invite.expires_at.strftime('%A den %d.%m.%Y um %H:%M') %>.
|
||||
This link works only once and expires on <%= I18n.l @invite.expires_at, locale: :en %>.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
Liebe(r) <%= @user.first_name %>,
|
||||
|
||||
Der Job <%= @task.name -%> Deiner Arbeitsgruppe ist am <%= @task.due_date.strftime("%d. %b") -%> fällig
|
||||
und es fehlen noch Mitstreiterinnen!
|
||||
|
||||
Sofern Du Dich noch nicht für diese Aufgabe eingetragen hast ist das jetzt die Chance:
|
||||
<%= @task_url %>
|
||||
|
||||
--
|
||||
Deine Aufgaben: <%= url_for(:controller => "home", :actions => "user") %>
|
||||
|
||||
11
app/views/mailer/not_enough_users_assigned.text.erb
Normal file
11
app/views/mailer/not_enough_users_assigned.text.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Liebe(r) <%= @user.first_name %>,
|
||||
|
||||
Der Job '<%= @task.name -%>' Deiner Arbeitsgruppe ist am <%= I18n.l @task.due_date, format: "%d. %b" %> fällig
|
||||
und es fehlen noch Mitstreiterinnen!
|
||||
|
||||
Sofern Du Dich noch nicht für diese Aufgabe eingetragen hast ist das jetzt die Chance:
|
||||
<%= workgroup_tasks_url(workgroup_id: task.workgroup_id) %>
|
||||
|
||||
--
|
||||
Deine Aufgaben: <%= user_tasks_url %>
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Liebe <%= @group_order.ordergroup.name %>,
|
||||
|
||||
die Bestellung für "<%= @order.name %>" wurde am <%= @order.ends.strftime('%d.%m.%Y um %H:%M') %> von <%= @order.updated_by.nick %> beendet.
|
||||
die Bestellung für "<%= @order.name %>" wurde am <%= I18n.l @order.ends %> von <%= @order.updated_by.nick %> beendet.
|
||||
|
||||
Für Euch wurden die folgenden Artikel bestellt:
|
||||
<% for group_order_article in @group_order.group_order_articles.ordered.all(:include => :order_article)
|
||||
|
|
@ -9,6 +9,6 @@ Für Euch wurden die folgenden Artikel bestellt:
|
|||
<% end -%>
|
||||
Gesamtpreis: <%= @group_order.price %>
|
||||
|
||||
Bestellung online einsehen: <%= url_for(:controller => "ordering", :action => "my_order_result", :id => @order.id) %>
|
||||
Bestellung online einsehen: <%= group_order_url(@group_order) %>
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
|
|
@ -2,7 +2,7 @@ Hallo <%= @user.nick %>,
|
|||
|
||||
du (oder jemand anderes) hat auf der FoodSoft-Website ein neues Passwort angefordert.
|
||||
Um ein neues Passwort einzugeben, gehe zu: <%= @link %>
|
||||
Dieser Link kann nur einmal aufgerufen werden und läuft am <%= @user.reset_password_expires.strftime('%A (%d.%m.%Y %H:%M)') %> ab.
|
||||
Dieser Link kann nur einmal aufgerufen werden und läuft am <%= I18n.l @user.reset_password_expires %> ab.
|
||||
Wenn du das Passwort nicht ändern möchtest oder diese Email nicht ausgelöst hast, brauchst du nichts zu tun. Dein bisheriges Passwort wurde nicht geändert.
|
||||
|
||||
Grüße sendet die Foodsoft! :)
|
||||
|
|
@ -12,7 +12,7 @@ Grüße sendet die Foodsoft! :)
|
|||
Hi <%= @user.nick %>,
|
||||
you have (or someone else has) requested a new password.
|
||||
In order to choose a new password follow this link: <%= @link %>
|
||||
This link works only once and expires on <%= @user.reset_password_expires.strftime('%A (%d.%m.%Y %H:%M)') %>.
|
||||
This link works only once and expires on <%= I18n.l @user.reset_password_expires, locale: :en %>.
|
||||
If you don't want to change your password, just ignore this message. Your password hasn't been changed yet.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
Liebe(r) <%= @user.name %>,
|
||||
|
||||
Du bist für "<%= @task.name -%>" eingetragen. Die Aufgabe ist morgen (<%= @task.due_date.strftime("%d. %b") -%>) fällig!
|
||||
|
||||
<% if @user.next_tasks.size > 1 -%>
|
||||
Aufgaben für die nächste Woche:
|
||||
<% for next_task in @user.next_tasks -%>
|
||||
<% unless next_task == @task -%>
|
||||
* <%= next_task.due_date.strftime("%d.%m.") -%> <%= next_task.name %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
Meine Aufgaben: <%= url_for(:controller => "home", :actions => "user") %>
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
15
app/views/mailer/upcoming_tasks.text.erb
Normal file
15
app/views/mailer/upcoming_tasks.text.erb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Liebe(r) <%= @user.name %>,
|
||||
|
||||
Du bist für "<%= @task.name -%>" eingetragen. Die Aufgabe ist morgen (<%= I18n.l @task.due_date, format: "%d. %b" %>) fällig!
|
||||
|
||||
<% if @user.next_tasks.size > 0 %>
|
||||
Aufgaben für die nächste Woche:
|
||||
<% for next_task in @user.next_tasks -%>
|
||||
<% next if next_task == @task -%>
|
||||
* <%= I18n.l next_task.due_date, format: "%d. %b" -%> <%= next_task.name %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
Meine Aufgaben: <%= user_tasks_url %>
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue