Verified Commit 7a34c98c authored by les's avatar les
Browse files

use i18n in event confirmation email

parent 45a22b09
......@@ -18,5 +18,8 @@
"admin_register": {
"subject": "New registration",
"content": "{{user.email}} has requested registration on {{config.title}}: <br/><pre>{{user.description}}</pre><br/> Confirm it <a href='{{config.baseurl}}/admin'>here</a>."
}
},
"event_confirm": {
"content": "You can confirm this event at <a href='{{url}}'>this page</a>"
}
}
......@@ -18,5 +18,8 @@
"admin_register": {
"subject": "Nuova registrazione",
"content": "{{user.email}} si è registratǝ a {{config.title}} scrivendo:<br/><pre>{{user.description}}</pre><br/> Puoi confermarlo <a href='{{config.baseurl}}/admin'>qui</a>."
},
"event_confirm": {
"content": "Puoi confermare questo evento premendo il tasto conferma in <a href='{{url}}'>questa pagina</a>"
}
}
extends ../layout.pug
block content
h3 #{event.title}
p 📍 Dove: #{event.place.name} - #{event.place.address}
p ⏰ Quando: #{datetime(event.start_datetime)}
p 📍 #{event.place.name} - #{event.place.address}
p ⏰ #{datetime(event.start_datetime)}
br
if event.media && event.media.length
<center>
......@@ -17,6 +17,6 @@ block content
<a href="#{config.baseurl}/event/#{event.slug || event.id}">#{config.baseurl}/event/#{event.slug || event.id}</a>
hr
if to_confirm
p Puoi confermare questo evento premendo il tasto conferma a <a href="#{config.baseurl}/event/#{event.slug || event.id}">questa pagina</a>
else
p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
p !{t('event_confirm.content', {config, url: `${config.baseurl}/event/${event.slug || event.id}`})}
//- else
//- p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment