Verified Commit 9e696c58 authored by les's avatar les
Browse files

add forgotten slug

parent 95e740fc
......@@ -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>
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