File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" item-view" v-show =" item" >
3
3
<item :item =" item" ></item >
4
+ <p class =" itemtext" v-if =" hasText" v-html =" item.text" ></p >
4
5
<ul class =" poll-options" v-if =" pollOptions" >
5
6
<li v-for =" option in pollOptions" >
6
7
<p >{{option.text}}</p >
13
14
:comment =" comment" >
14
15
</comment >
15
16
</ul >
16
- <p v-show =" !comments.length" >No comments yet.</p >
17
+ <p v-show =" !comments.length && !isJob " >No comments yet.</p >
17
18
</div >
18
19
</template >
19
20
@@ -50,6 +51,16 @@ export default {
50
51
: null
51
52
}))
52
53
}
54
+ },
55
+
56
+ computed: {
57
+ isJob () {
58
+ return this .item .type === ' job'
59
+ },
60
+
61
+ hasText () {
62
+ return this .item .hasOwnProperty (' text' )
63
+ }
53
64
}
54
65
}
55
66
</script >
@@ -73,4 +84,10 @@ export default {
73
84
.subtext
74
85
color $gray
75
86
font-size 11px
87
+ .itemtext
88
+ color $gray
89
+ margin-top 0
90
+ margin-bottom 30px
91
+ .itemtext p
92
+ margin 10px 0
76
93
</style >
You can’t perform that action at this time.
0 commit comments