2021-03-16 19:57:34 +01:00
|
|
|
<template lang="pug">
|
2021-01-22 21:14:41 +01:00
|
|
|
v-card.h-event.event
|
2021-04-13 18:04:53 +02:00
|
|
|
nuxt-link(:to='`/event/${event.slug || event.id}`')
|
2021-03-18 22:38:55 +01:00
|
|
|
v-img.img(:src="`/media/thumb/${event.image_path || 'logo.svg' }`")
|
2021-03-16 19:57:34 +01:00
|
|
|
v-icon.float-right.mr-1(v-if='event.parentId' color='success') mdi-repeat
|
|
|
|
.title.p-name {{event.title}}
|
2020-10-07 13:03:15 +02:00
|
|
|
|
2021-03-08 14:39:18 +01:00
|
|
|
v-card-text.body.pt-0.pb-0
|
2021-03-16 19:57:34 +01:00
|
|
|
time.dt-start.subtitle-1(:datetime='event.start_datetime|unixFormat("YYYY-MM-DD HH:mm")') <v-icon>mdi-calendar</v-icon> {{ event|when }}
|
|
|
|
.d-none.dt-end {{event.end_datetime|unixFormat('YYYY-MM-DD HH:mm')}}
|
|
|
|
a.place.d-block.p-location.pl-0(text color='primary' @click="$emit('placeclick', event.place.id)") <v-icon>mdi-map-marker</v-icon> {{event.place.name}}
|
2020-10-25 00:30:28 +02:00
|
|
|
|
2021-03-06 00:16:54 +01:00
|
|
|
v-card-actions.actions.justify-space-between
|
2021-03-05 14:21:01 +01:00
|
|
|
.tags
|
2021-03-16 19:57:34 +01:00
|
|
|
v-chip.ml-1.px-2(v-for='tag in event.tags' small
|
|
|
|
:key='tag' outlined color='primary' @click="$emit('tagclick', tag)") {{tag}}
|
2020-10-07 13:03:15 +02:00
|
|
|
|
2021-01-22 21:14:41 +01:00
|
|
|
v-menu(offset-y)
|
|
|
|
template(v-slot:activator="{on}")
|
2021-03-06 00:16:54 +01:00
|
|
|
v-btn.align-self-end(icon v-on='on' color='primary')
|
2021-01-22 21:14:41 +01:00
|
|
|
v-icon mdi-dots-vertical
|
|
|
|
v-list(dense)
|
|
|
|
v-list-item-group
|
2021-03-16 19:57:34 +01:00
|
|
|
v-list-item(v-clipboard:success="() => $root.$message('common.copied', { color: 'success' })"
|
|
|
|
v-clipboard:copy='`${settings.baseurl}/event/${event.id}`')
|
2021-01-22 21:14:41 +01:00
|
|
|
v-list-item-icon
|
|
|
|
v-icon mdi-content-copy
|
|
|
|
v-list-item-content
|
2021-03-16 19:57:34 +01:00
|
|
|
v-list-item-title {{$t('common.copy_link')}}
|
|
|
|
v-list-item(:href='`/api/event/${event.id}.ics`')
|
2021-01-22 21:14:41 +01:00
|
|
|
v-list-item-icon
|
|
|
|
v-icon mdi-calendar-export
|
|
|
|
v-list-item-content
|
2021-03-16 19:57:34 +01:00
|
|
|
v-list-item-title {{$t('common.add_to_calendar')}}
|
2020-10-07 13:03:15 +02:00
|
|
|
|
2019-04-03 00:25:12 +02:00
|
|
|
</template>
|
|
|
|
<script>
|
2021-03-16 19:57:34 +01:00
|
|
|
import { mapState } from 'vuex'
|
2019-04-03 00:25:12 +02:00
|
|
|
|
|
|
|
export default {
|
2019-05-30 12:04:14 +02:00
|
|
|
props: {
|
2021-01-22 21:14:41 +01:00
|
|
|
event: { type: Object, default: () => ({}) }
|
2021-03-16 19:57:34 +01:00
|
|
|
},
|
|
|
|
computed: mapState(['settings'])
|
2019-04-03 00:25:12 +02:00
|
|
|
}
|
2021-04-13 18:04:53 +02:00
|
|
|
</script>
|