2021-03-16 19:57:34 +01:00
|
|
|
<template lang="pug">
|
2023-03-27 17:19:27 +02:00
|
|
|
div.h-event(itemscope itemtype="https://schema.org/Event")
|
2022-07-01 15:55:09 +02:00
|
|
|
nuxt-link(:to='`/event/${event.slug || event.id}`' itemprop="url")
|
2022-11-27 03:38:05 +01:00
|
|
|
MyPicture(v-if='!hide_thumbs' :event='event' thumb :lazy='lazy')
|
2022-07-01 15:55:09 +02:00
|
|
|
v-icon.float-right.mr-1(v-if='event.parentId' color='success' v-text='mdiRepeat')
|
2022-09-05 00:02:33 +02:00
|
|
|
.title.p-name(itemprop="name") {{ event.title }}
|
2020-10-07 13:03:15 +02:00
|
|
|
|
2022-07-01 15:55:09 +02:00
|
|
|
v-card-text.body.pt-0.pb-0
|
2023-03-19 23:26:57 +01:00
|
|
|
time.dt-start.subtitle-1(:datetime='$time.unixFormat(event.start_datetime, "yyyy-MM-dd HH:mm")' itemprop="startDate" :content="$time.unixFormat(event.start_datetime, \"yyyy-MM-dd'T'HH:mm\")") <v-icon v-text='mdiCalendar'></v-icon> {{ $time.when(event) }}
|
|
|
|
.d-none.dt-end(v-if='event.end_datetime' itemprop="endDate" :content="$time.unixFormat(event.end_datetime,\"yyyy-MM-dd'T'HH:mm\")") {{ $time.unixFormat(event.end_datetime)}}
|
2022-11-09 10:17:52 +01:00
|
|
|
nuxt-link.place.d-block.p-location.pl-0(text :to='`/place/${encodeURIComponent(event.place.name)}`' itemprop="location" itemscope itemtype="https://schema.org/Place") <v-icon v-text='mdiMapMarker'></v-icon> <span itemprop='name'>{{ event.place.name }}</span>
|
2022-09-05 00:02:33 +02:00
|
|
|
.d-none(itemprop='address') {{ event.place.address }}
|
2020-10-25 00:30:28 +02:00
|
|
|
|
2022-11-24 17:27:38 +01:00
|
|
|
v-card-actions.flex-wrap
|
2022-11-15 17:37:13 +01:00
|
|
|
v-chip.ml-1.mt-1(v-for='tag in event.tags.slice(0, 6)' small label :to='`/tag/${encodeURIComponent(tag)}`'
|
|
|
|
:key='tag' outlined color='primary') {{ tag }}
|
2020-10-07 13:03:15 +02:00
|
|
|
|
2019-04-03 00:25:12 +02:00
|
|
|
</template>
|
|
|
|
<script>
|
2023-02-03 21:55:33 +01:00
|
|
|
import { mapGetters } from 'vuex'
|
2022-04-27 12:34:58 +02:00
|
|
|
import MyPicture from '~/components/MyPicture'
|
2022-09-22 08:16:51 +02:00
|
|
|
import { mdiRepeat, mdiCalendar, mdiMapMarker } from '@mdi/js'
|
2019-04-03 00:25:12 +02:00
|
|
|
|
|
|
|
export default {
|
2023-03-19 23:26:57 +01:00
|
|
|
data() {
|
2023-02-03 21:55:33 +01:00
|
|
|
return { mdiRepeat, mdiMapMarker, mdiCalendar }
|
2022-02-08 14:45:19 +01:00
|
|
|
},
|
2022-04-27 12:34:58 +02:00
|
|
|
components: {
|
|
|
|
MyPicture
|
|
|
|
},
|
2019-05-30 12:04:14 +02:00
|
|
|
props: {
|
2022-02-04 22:35:15 +01:00
|
|
|
event: { type: Object, default: () => ({}) },
|
|
|
|
lazy: Boolean
|
2021-03-16 19:57:34 +01:00
|
|
|
},
|
2023-02-03 21:55:33 +01:00
|
|
|
computed: mapGetters(['hide_thumbs'])
|
2019-04-03 00:25:12 +02:00
|
|
|
}
|
2021-04-13 18:04:53 +02:00
|
|
|
</script>
|