mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +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": {
|
"admin_register": {
|
||||||
"subject": "New registration",
|
"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>."
|
"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": {
|
"admin_register": {
|
||||||
"subject": "Nuova registrazione",
|
"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>."
|
"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
|
extends ../layout.pug
|
||||||
block content
|
block content
|
||||||
h3 #{event.title}
|
h3 #{event.title}
|
||||||
p 📍 Dove: #{event.place.name} - #{event.place.address}
|
p 📍 #{event.place.name} - #{event.place.address}
|
||||||
p ⏰ Quando: #{datetime(event.start_datetime)}
|
p ⏰ #{datetime(event.start_datetime)}
|
||||||
br
|
br
|
||||||
if event.media && event.media.length
|
if event.media && event.media.length
|
||||||
<center>
|
<center>
|
||||||
|
@ -17,6 +17,6 @@ block content
|
||||||
<a href="#{config.baseurl}/event/#{event.slug || event.id}">#{config.baseurl}/event/#{event.slug || event.id}</a>
|
<a href="#{config.baseurl}/event/#{event.slug || event.id}">#{config.baseurl}/event/#{event.slug || event.id}</a>
|
||||||
hr
|
hr
|
||||||
if to_confirm
|
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>
|
p !{t('event_confirm.content', {config, url: `${config.baseurl}/event/${event.slug || event.id}`})}
|
||||||
else
|
//- else
|
||||||
p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
|
//- p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
|
||||||
|
|
Loading…
Reference in a new issue