Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
0de68b50
Commit
0de68b50
authored
Aug 25, 2019
by
les
Browse files
show if events has comments
parent
fdb16206
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/Event.vue
View file @
0de68b50
<
template
lang=
"pug"
>
nuxt-link.event(:to='`event/${link}`' :class='{ withImg: event.image_path }')
//- image
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='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')
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
>
<
script
>
import
{
mapState
,
mapActions
}
from
'
vuex
'
...
...
@@ -37,14 +33,6 @@ export default {
type
:
Boolean
,
default
:
true
},
showDescription
:
{
type
:
Boolean
,
default
:
true
},
selected
:
{
type
:
Boolean
,
default
:
false
}
},
computed
:
{
date
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment