Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
9e696c58
Verified
Commit
9e696c58
authored
Jul 27, 2021
by
les
Browse files
add forgotten slug
parent
95e740fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/api/controller/export.js
View file @
9e696c58
...
...
@@ -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
},
...
...
server/emails/event/html.pug
View file @
9e696c58
...
...
@@ -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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment