add html email layout and adjust translations for urls
This commit is contained in:
parent
199c0e92ca
commit
eb9314773d
13 changed files with 52 additions and 18 deletions
12
app/views/layouts/email.html.haml
Normal file
12
app/views/layouts/email.html.haml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
= yield
|
||||||
|
\
|
||||||
|
%hr
|
||||||
|
%ul
|
||||||
|
%li
|
||||||
|
%a{href: root_url} Foodsoft
|
||||||
|
- if FoodsoftConfig[:homepage]
|
||||||
|
%li
|
||||||
|
%a{href: FoodsoftConfig[:homepage]} Foodcoop
|
||||||
|
- if FoodsoftConfig[:help_url]
|
||||||
|
%li
|
||||||
|
%a{href: FoodsoftConfig[:help_url]}= t '.help'
|
|
@ -1221,6 +1221,7 @@ de:
|
||||||
footer_2_foodsoft: 'Foodsoft: %{url}'
|
footer_2_foodsoft: 'Foodsoft: %{url}'
|
||||||
footer_3_homepage: 'Foodcoop: %{url}'
|
footer_3_homepage: 'Foodcoop: %{url}'
|
||||||
footer_4_help: 'Hilfe: %{url}'
|
footer_4_help: 'Hilfe: %{url}'
|
||||||
|
help: 'Hilfe'
|
||||||
foodsoft: Foodsoft
|
foodsoft: Foodsoft
|
||||||
footer:
|
footer:
|
||||||
revision: Revision %{revision}
|
revision: Revision %{revision}
|
||||||
|
|
|
@ -1224,6 +1224,7 @@ en:
|
||||||
footer_2_foodsoft: 'Foodsoft: %{url}'
|
footer_2_foodsoft: 'Foodsoft: %{url}'
|
||||||
footer_3_homepage: 'Foodcoop: %{url}'
|
footer_3_homepage: 'Foodcoop: %{url}'
|
||||||
footer_4_help: 'Help: %{url}'
|
footer_4_help: 'Help: %{url}'
|
||||||
|
help: 'Help'
|
||||||
foodsoft: Foodsoft
|
foodsoft: Foodsoft
|
||||||
footer:
|
footer:
|
||||||
revision: revision %{revision}
|
revision: revision %{revision}
|
||||||
|
|
|
@ -1082,6 +1082,7 @@ es:
|
||||||
layouts:
|
layouts:
|
||||||
email:
|
email:
|
||||||
footer_4_help: 'Ayuda: %{url}'
|
footer_4_help: 'Ayuda: %{url}'
|
||||||
|
help: 'Ayuda'
|
||||||
footer:
|
footer:
|
||||||
revision: revisión %{revision}
|
revision: revisión %{revision}
|
||||||
header:
|
header:
|
||||||
|
|
|
@ -834,6 +834,7 @@ fr:
|
||||||
email:
|
email:
|
||||||
footer_3_homepage: 'Boufcoop: %{url}'
|
footer_3_homepage: 'Boufcoop: %{url}'
|
||||||
footer_4_help: 'Aide: %{url}'
|
footer_4_help: 'Aide: %{url}'
|
||||||
|
help: 'Aide'
|
||||||
footer:
|
footer:
|
||||||
revision: révision %{revision}
|
revision: révision %{revision}
|
||||||
header:
|
header:
|
||||||
|
|
|
@ -1194,6 +1194,7 @@ nl:
|
||||||
footer_2_foodsoft: 'Foodsoft: %{url}'
|
footer_2_foodsoft: 'Foodsoft: %{url}'
|
||||||
footer_3_homepage: 'Foodcoop: %{url}'
|
footer_3_homepage: 'Foodcoop: %{url}'
|
||||||
footer_4_help: 'Help: %{url}'
|
footer_4_help: 'Help: %{url}'
|
||||||
|
help: 'Help'
|
||||||
foodsoft: Foodsoft
|
foodsoft: Foodsoft
|
||||||
footer:
|
footer:
|
||||||
revision: revisie %{revision}
|
revision: revisie %{revision}
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
= @message.body
|
= raw @message.body
|
||||||
%hr/
|
%hr
|
||||||
%pre
|
%ul
|
||||||
- if @message.group
|
- if @message.group
|
||||||
= raw t '.footer_group', group: @message.group.name
|
%li= t '.footer_group', group: @message.group.name
|
||||||
= raw t '.footer', reply_url: new_message_url('message[reply_to]' => @message.id), msg_url: message_url(@message), profile_url: my_profile_url
|
%li
|
||||||
|
%a{href: new_message_url('message[reply_to]' => @message.id)}= t '.reply'
|
||||||
|
%li
|
||||||
|
%a{href: message_url(@message)}= t '.see_message_online'
|
||||||
|
%li
|
||||||
|
%a{href: my_profile_url}= t '.messaging_options'
|
||||||
|
|
|
@ -138,6 +138,9 @@ de:
|
||||||
Antworten: %{reply_url}
|
Antworten: %{reply_url}
|
||||||
Nachricht online einsehen: %{msg_url}
|
Nachricht online einsehen: %{msg_url}
|
||||||
Nachrichten-Einstellungen: %{profile_url}
|
Nachrichten-Einstellungen: %{profile_url}
|
||||||
|
reply: Antworten
|
||||||
|
see_message_online: Nachricht online einsehen
|
||||||
|
messaging_options: Nachrichten-Einstellungen
|
||||||
footer_group: |
|
footer_group: |
|
||||||
Gesendet an Gruppe: %{group}
|
Gesendet an Gruppe: %{group}
|
||||||
navigation:
|
navigation:
|
||||||
|
|
|
@ -140,6 +140,9 @@ en:
|
||||||
Reply: %{reply_url}
|
Reply: %{reply_url}
|
||||||
See message online: %{msg_url}
|
See message online: %{msg_url}
|
||||||
Messaging options: %{profile_url}
|
Messaging options: %{profile_url}
|
||||||
|
reply: Reply
|
||||||
|
see_message_online: See message online
|
||||||
|
messaging_options: Messaging options
|
||||||
footer_group: |
|
footer_group: |
|
||||||
Sent to group: %{group}
|
Sent to group: %{group}
|
||||||
navigation:
|
navigation:
|
||||||
|
|
|
@ -67,6 +67,9 @@ fr:
|
||||||
Répondre: %{reply_url}
|
Répondre: %{reply_url}
|
||||||
Afficher ce message dans ton navigateur: %{msg_url}
|
Afficher ce message dans ton navigateur: %{msg_url}
|
||||||
Préférences des messages: %{profile_url}
|
Préférences des messages: %{profile_url}
|
||||||
|
reply: Répondre
|
||||||
|
see_message_online: Afficher ce message dans ton navigateur
|
||||||
|
messaging_options: Préférences des messages
|
||||||
simple_form:
|
simple_form:
|
||||||
labels:
|
labels:
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -140,6 +140,9 @@ nl:
|
||||||
Antwoorden: %{reply_url}
|
Antwoorden: %{reply_url}
|
||||||
Bericht online lezen: %{msg_url}
|
Bericht online lezen: %{msg_url}
|
||||||
Berichtinstellingen: %{profile_url}
|
Berichtinstellingen: %{profile_url}
|
||||||
|
reply: Antwoorden
|
||||||
|
see_message_online: Bericht online lezen
|
||||||
|
messaging_options: Berichtinstellingen
|
||||||
footer_group: |
|
footer_group: |
|
||||||
Verzenden aan groep: %{group}
|
Verzenden aan groep: %{group}
|
||||||
navigation:
|
navigation:
|
||||||
|
|
Loading…
Reference in a new issue