use i18n in event confirmation email

This commit is contained in:
les 2021-07-28 10:31:08 +02:00
parent 45a22b094a
commit 7a34c98ce4
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 12 additions and 6 deletions

View file

@ -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>"
}
}

View file

@ -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>"
}
}

View file

@ -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>