mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
use i18n in event confirmation email
This commit is contained in:
parent
45a22b094a
commit
7a34c98ce4
3 changed files with 12 additions and 6 deletions
|
@ -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>"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
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>
|
||||
|
|
Loading…
Reference in a new issue