mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
add forgotten slug
This commit is contained in:
parent
95e740fcea
commit
9e696c5884
2 changed files with 6 additions and 5 deletions
|
@ -27,7 +27,7 @@ const exportController = {
|
|||
|
||||
const events = await Event.findAll({
|
||||
order: ['start_datetime'],
|
||||
attributes: { exclude: ['is_visible', 'recurrent', 'createdAt', 'updatedAt', 'likes', 'boost', 'slug', 'userId', 'placeId'] },
|
||||
attributes: { exclude: ['is_visible', 'recurrent', 'createdAt', 'likes', 'boost', 'userId', 'placeId'] },
|
||||
where: {
|
||||
is_visible: true,
|
||||
recurrent: { [Op.eq]: null },
|
||||
|
|
|
@ -4,18 +4,19 @@ block content
|
|||
p 📍 Dove: #{event.place.name} - #{event.place.address}
|
||||
p ⏰ Quando: #{datetime(event.start_datetime)}
|
||||
br
|
||||
if event.media
|
||||
if event.media && event.media.length
|
||||
<center>
|
||||
<img style="height: 89vh; margin: 0 auto;" alt="#{event.media[0].name}" src="#{config.baseurl}/media/#{event.media[0].url}" />
|
||||
</center>
|
||||
p !{event.description}
|
||||
if event.description
|
||||
p !{event.description}
|
||||
|
||||
each tag in event.tags
|
||||
span ##{tag.tag}
|
||||
br
|
||||
<a href="#{config.baseurl}/event/#{event.id}">#{config.baseurl}/event/#{event.id}</a>
|
||||
<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.id}">questa pagina</a>
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue