extends ../layout.pug
block content
  h3 #{event.title}
  p 📍 #{event.place.name} - #{event.place.address}
  p ⏰ #{datetime(event.start_datetime)}
  br
  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>
  if event.description
    p !{event.description}

  each tag in event.tags
    span ##{tag.tag} 
  br
  <a href="#{config.baseurl}/event/#{event.slug || event.id}">#{config.baseurl}/event/#{event.slug || event.id}</a>
  hr
  if to_confirm
    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>
