use new $time plugin instead of filters, fix #252
This commit is contained in:
@@ -9,7 +9,7 @@ v-container
|
|||||||
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:items='unconfirmedEvents'
|
:items='unconfirmedEvents'
|
||||||
:headers='headers')
|
:headers='headers')
|
||||||
template(v-slot:item.when='{ item }') {{item|when}}
|
template(v-slot:item.when='{ item }') {{$time.when(item)}}
|
||||||
template(v-slot:item.actions='{ item }')
|
template(v-slot:item.actions='{ item }')
|
||||||
v-btn(text small @click='confirm(item)' color='success') {{$t('common.confirm')}}
|
v-btn(text small @click='confirm(item)' color='success') {{$t('common.confirm')}}
|
||||||
v-btn(text small :to='`/event/${item.slug || item.id}`' color='success') {{$t('common.preview')}}
|
v-btn(text small :to='`/event/${item.slug || item.id}`' color='success') {{$t('common.preview')}}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
nuxt-link.embed_event(:to='`/event/${event.slug || event.id}`' target='_blank' :class='{ withImg: event.media }')
|
nuxt-link.embed_event(:to='`/event/${event.slug || event.id}`' target='_blank' :class='{ withImg: event.media }')
|
||||||
|
|
||||||
//- image
|
//- image
|
||||||
img.float-left(:src='event | mediaURL("thumb")')
|
img.float-left(:src='$helper.mediaURL(event, "thumb")')
|
||||||
.event-info
|
.event-info
|
||||||
//- title
|
//- title
|
||||||
.date {{event|when}}<br/>
|
.date {{$time.when(event)}}<br/>
|
||||||
h4 {{event.title}}
|
h4 {{event.title}}
|
||||||
|
|
||||||
//- date / place
|
//- date / place
|
||||||
|
|||||||
Reference in New Issue
Block a user