Fixed admin, orders, wiki views. Converted all erb to haml.
This commit is contained in:
parent
699fb9b233
commit
552c553b77
169 changed files with 1158 additions and 1307 deletions
|
|
@ -1,3 +0,0 @@
|
|||
<%= @user.nick %> schrieb am <%= I18n.l Time.now, :format => :short %>:
|
||||
|
||||
<%= @feedback %>
|
||||
4
app/views/mailer/feedback.text.haml
Normal file
4
app/views/mailer/feedback.text.haml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
= @user.nick
|
||||
schrieb am #{I18n.l Time.now, :format => :short}:
|
||||
|
||||
\#{@feedback}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<%= @message.body %>
|
||||
|
||||
======================================================================
|
||||
|
||||
Antworten: <%= new_message_url('message[reply_to]' => @message.id) %>
|
||||
Nachricht online einsehen: <%= message_url(@message) %>
|
||||
Nachrichten-Einstellungen: <%= my_profile_url %>
|
||||
6
app/views/mailer/foodsoft_message.text.haml
Normal file
6
app/views/mailer/foodsoft_message.text.haml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
= @message.body
|
||||
\======================================================================
|
||||
|
||||
Antworten: #{new_message_url('message[reply_to]' => @message.id)}
|
||||
Nachricht online einsehen: #{message_url(@message)}
|
||||
Nachrichten-Einstellungen: #{my_profile_url}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
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 <%= I18n.l @invite.expires_at %> gültig.
|
||||
|
||||
Grüße sendet die Foodsoft!
|
||||
|
||||
=======
|
||||
|
||||
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 <%= I18n.l @invite.expires_at, locale: :en %>.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
17
app/views/mailer/invite.text.haml
Normal file
17
app/views/mailer/invite.text.haml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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 #{I18n.l @invite.expires_at} gültig.
|
||||
|
||||
Grüße sendet die Foodsoft!
|
||||
|
||||
\=======
|
||||
|
||||
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 #{I18n.l @invite.expires_at, locale: :en}.
|
||||
|
||||
Greetings, your FoodSoft Team!
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
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 <%= FoodsoftConfig[:name] %>
|
||||
9
app/views/mailer/negative_balance.text.haml
Normal file
9
app/views/mailer/negative_balance.text.haml
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 #{FoodsoftConfig[:name]}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
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 %>
|
||||
|
||||
10
app/views/mailer/not_enough_users_assigned.text.haml
Normal file
10
app/views/mailer/not_enough_users_assigned.text.haml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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,14 +0,0 @@
|
|||
Liebe <%= @group_order.ordergroup.name %>,
|
||||
|
||||
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)
|
||||
article = group_order_article.order_article.article -%>
|
||||
<%= article.name %>: <%= group_order_article.result %> x <%= article.unit %> = <%= group_order_article.result * article.fc_price %>
|
||||
<% end -%>
|
||||
Gesamtpreis: <%= @group_order.price %>
|
||||
|
||||
Bestellung online einsehen: <%= group_order_url(@group_order) %>
|
||||
|
||||
Viele Grüße von <%= FoodsoftConfig[:name] %>
|
||||
14
app/views/mailer/order_result.text.haml
Normal file
14
app/views/mailer/order_result.text.haml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Liebe #{@group_order.ordergroup.name},
|
||||
|
||||
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)
|
||||
- article = group_order_article.order_article.article
|
||||
= article.name
|
||||
\: #{group_order_article.result} x #{article.unit} = #{group_order_article.result * article.fc_price}
|
||||
Gesamtpreis: #{@group_order.price}
|
||||
|
||||
Bestellung online einsehen: #{group_order_url(@group_order)}
|
||||
|
||||
Viele Grüße von #{FoodsoftConfig[:name]}
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
Hallo <%= @user.nick %>,
|
||||
Hallo #{@user.nick},
|
||||
|
||||
du (oder jemand anderes) hat auf der FoodSoft-Website ein neues Passwort angefordert.
|
||||
Um ein neues Passwort einzugeben, gehe zu: <%= raw @link %>
|
||||
Dieser Link kann nur einmal aufgerufen werden und läuft am <%= I18n.l @user.reset_password_expires %> ab.
|
||||
Um ein neues Passwort einzugeben, gehe zu: #{raw @link}
|
||||
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! :)
|
||||
|
||||
===========
|
||||
\===========
|
||||
|
||||
Hi <%= @user.nick %>,
|
||||
Hi #{@user.nick},
|
||||
you have (or someone else has) requested a new password.
|
||||
In order to choose a new password follow this link: <%= raw @link %>
|
||||
This link works only once and expires on <%= I18n.l @user.reset_password_expires, locale: :en %>.
|
||||
In order to choose a new password follow this link: #{raw @link}
|
||||
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,15 +0,0 @@
|
|||
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 <%= FoodsoftConfig[:name] %>
|
||||
11
app/views/mailer/upcoming_tasks.text.haml
Normal file
11
app/views/mailer/upcoming_tasks.text.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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}
|
||||
Meine Aufgaben: #{user_tasks_url}
|
||||
|
||||
Viele Grüße von #{FoodsoftConfig[:name]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue