Refactoring of message system.
This commit is contained in:
parent
a0e10141dc
commit
3ea8d5a2ef
21 changed files with 94 additions and 113 deletions
16
app/views/mailer/upcoming_tasks.html.erb
Normal file
16
app/views/mailer/upcoming_tasks.html.erb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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: <%= APP_CONFIG[:base_url] %>/home/tasks
|
||||
|
||||
Viele Grüße von <%= APP_CONFIG[:name] %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue