el-main#eventDetail
//- close button
//- nuxt-link.float-right(to='/')
//- el-button(circle icon='el-icon-close' type='danger' size='mini' plain)
nuxt-link.mr-3(to='/')
img#logo(src='/favicon.ico')
span.title {{event.title}}
div.float-right
nuxt-link.mr-1(:to='`/event/${prev}`')
el-button(circle plain size='small' icon='el-icon-arrow-left' :disabled='!prev')
nuxt-link(:to='`/event/${next}`')
el-button(circle plain size='small' :disabled='!next' icon='el-icon-arrow-right')
//- image
el-row.mt-3
el-col(:sm='18')
img.main.mb-3(:src='imgPath' v-if='event.image_path')
pre(v-html='$options.filters.linkify(event.description)')
el-tag.mr-1.mb-1(v-for='tag in event.tags'
size='mini' :key='tag.tag') {{tag.tag}}
el-col(:sm='6')
el-menu.menu
el-divider {{$t('common.when')}}
//- When(:event='event')
p {{event|when}}
p {{event|to}}
el-divider {{$t('common.where')}}
p {{event.place.name}}
p {{event.place.address}}
el-divider {{$t('common.actions')}}
el-menu-item(v-clipboard:success='copyLink'
v-clipboard:copy='`${settings.baseurl}/event/${event.id}`') {{$t('common.copy_link')}}
el-menu-item
a.d-block(:href='`${settings.baseurl}/api/event/${event.id}.ics`') {{$t('common.add_to_calendar')}}
//- el-button(plain size='mini' type='primary'
//- icon='el-icon-document' ) {{$t('common.send_via_mail')}}
el-menu-item
div(@click.prevents='toggle') {{$t(event.is_visible?'common.hide':'common.confirm')}}
el-menu-item
div(@click.prevent='remove') {{$t('common.remove')}}
el-menu-item(@click='$router.replace(`/add/${event.id}`)') {{$t('common.edit')}}
hr
//- comments from fediverse
#comments(v-if='settings.enable_federation')
div.float-right(v-if='!settings.disable_gamification')
small.mr-3 🔖 {{event.likes.length}}
small ✊ {{event.boost.length}}
strong(v-if='settings.enable_comments') {{$tc('common.comments', event.comments.length)}} -
small {{$t('event.interact_with_me_at')}} {{fedi_user}}@{{settings.baseurl|url2host}}
.card-header(v-if='settings.enable_comments' v-for='comment in event.comments' :key='comment.id')
a.float-right(:href='comment.data.url')
small {{comment.data.published|datetime}}
div.mt-1(v-html='comment_filter(comment.data.content)')
img(v-for='img in comment.data.media_attachments' :src='img.url')