File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 17
17
| <a :href =" '#/item/' + item.id" >{{item.descendants}} {{item.descendants | pluralize 'comment'}}</a >
18
18
</span >
19
19
</p >
20
- <p class =" jobtext" v-show =" isJob" v-html =" item.text" ></p >
21
20
</div >
22
21
</template >
23
22
@@ -40,9 +39,6 @@ export default {
40
39
},
41
40
showDomain () {
42
41
return this .item .type === ' story'
43
- },
44
- isJob () {
45
- return this .item .type === ' job'
46
42
}
47
43
}
48
44
}
@@ -73,9 +69,4 @@ export default {
73
69
color $gray
74
70
.subtext a :hover
75
71
text-decoration underline
76
- .jobtext
77
- color $gray
78
- padding-top 5px
79
- .jobtext p
80
- margin 10px 0
81
72
</style >
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 =" jobtext" v-if =" isJob" 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 && item.type !== 'job' " >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,12 @@ export default {
50
51
: null
51
52
}))
52
53
}
54
+ },
55
+
56
+ computed: {
57
+ isJob () {
58
+ return this .item .type === ' job'
59
+ }
53
60
}
54
61
}
55
62
</script >
@@ -73,4 +80,9 @@ export default {
73
80
.subtext
74
81
color $gray
75
82
font-size 11px
83
+ .jobtext
84
+ color $gray
85
+ margin-top 0
86
+ .jobtext p
87
+ margin 10px 0
76
88
</style >
You can’t perform that action at this time.
0 commit comments