mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
show if events has comments
This commit is contained in:
parent
fdb1620658
commit
0de68b5054
1 changed files with 2 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
nuxt-link.event(:to='`event/${link}`' :class='{ withImg: event.image_path }')
|
nuxt-link.event(:to='`event/${link}`' :class='{ withImg: event.image_path }')
|
||||||
|
|
||||||
//- image
|
//- image
|
||||||
img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
|
img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
|
||||||
|
|
||||||
|
@ -14,14 +15,9 @@
|
||||||
div <v-icon name='clock'/> {{event|when('home')}}
|
div <v-icon name='clock'/> {{event|when('home')}}
|
||||||
div <v-icon name='map-marker-alt' /> {{event.place.name}}
|
div <v-icon name='map-marker-alt' /> {{event.place.name}}
|
||||||
|
|
||||||
//- p(v-if='showDescription') {{event.description}}
|
|
||||||
|
|
||||||
//- div(v-if='event.comments && event.comments.length')
|
|
||||||
//- v-icon(name='comments' color='dark')
|
|
||||||
//- span {{event.comments.length}} {{$t('common.comments')}}
|
|
||||||
|
|
||||||
ul.tags(v-if='showTags && event.tags')
|
ul.tags(v-if='showTags && event.tags')
|
||||||
li(v-for='tag in event.tags' :key='tag') {{tag}}
|
li(v-for='tag in event.tags' :key='tag') {{tag}}
|
||||||
|
li(v-if='event.comments.length') <u>{{$tc('common.comments', event.comments.length)}}</u>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapActions } from 'vuex'
|
import { mapState, mapActions } from 'vuex'
|
||||||
|
@ -37,14 +33,6 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
showDescription: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true
|
|
||||||
},
|
|
||||||
selected: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
date () {
|
date () {
|
||||||
|
|
Loading…
Reference in a new issue