v-container
v-navigation-drawer(v-model='openModeration' :fullscreen='$vuetify.breakpoint.xsOnly' fixed top right width=400 temporary)
EventModeration(:event='selectedEvent' v-if='openModeration' @close='openModeration=false')
v-card-title {{$t('admin.unconfirmed_events')}}
v-card-subtitle {{$t('admin.event_confirm_description')}}
v-data-table(
v-if='unconfirmedEvents.length'
:hide-default-footer='unconfirmedEvents.length<10'
:header-props='{ sortIcon: mdiChevronDown }'
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
:items='unconfirmedEvents'
:headers='headers')
template(v-slot:item.start_datetime='{ item }') {{$time.when(item)}}
template(v-slot:item.actions='{ item }')
t-btn(@click='confirm(item)' color='success' :tooltip="$t('common.confirm')")
v-icon(v-text='mdiCheckBold')
t-btn(@click='() => { selectedEvent = item; openModeration=true }' color='warning' :tooltip="$t('common.moderation')")
v-badge(v-if='item?.n_messages' :content="item?.n_messages" overlap bordered)
v-icon(v-text='mdiMessageText')
v-icon(v-else v-text='mdiMessageText')
t-btn(:to='`/event/${item.slug || item.id}`' color='info' :tooltip="$t('common.preview')")
v-icon(v-text='mdiEye')
t-btn(:to='`/add/${item.id}`' color='warning' :tooltip="$t('common.edit')")
v-icon(v-text='mdiPencil')
t-btn(@click='remove(item)' color='error' :tooltip="$t('common.delete')")
v-icon(v-text='mdiDeleteForever')
v-card-title {{$t('common.past_events')}}
v-data-table(
v-if='unconfirmedOldEvents.length'
:hide-default-footer='unconfirmedOldEvents.length<10'
:header-props='{ sortIcon: mdiChevronDown }'
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
:items='unconfirmedOldEvents'
:headers='headers')
template(v-slot:item.start_datetime='{ item }') {{$time.when(item)}}
template(v-slot:item.actions='{ item }')
template
t-btn(:to='`/event/${item.slug || item.id}`' color='info' :tooltip="$t('common.preview')")
v-icon(v-text='mdiArrowRight')
t-btn(:to='`/add/${item.id}`' color='warning' :tooltip="$t('common.edit')")
v-icon(v-text='mdiPencil')
t-btn(@click='remove(item)' color='error' :tooltip="$t('common.delete')")
v-icon(v-text='mdiDeleteForever')