File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 2
2
<div >
3
3
<div v-if =" summary" class =" ml-2 mr-2" >
4
4
<h6 >
5
- {{ job.title }}
6
- <nuxt-link :to =" '/job/' + job.id" class =" float-right" >
7
- Read more <v-icon name =" angle-double-right" />
8
- </nuxt-link >
5
+ <span v-html =" joblinksumm" />
9
6
</h6 >
10
7
<p class =" text-truncate mt-2" >
11
8
{{ job.snippet }}
@@ -92,6 +89,21 @@ export default {
92
89
this .job .url +
93
90
' ">More info ></a>'
94
91
)
92
+ },
93
+ joblinksumm () {
94
+ // AdView expects links in a particular format, which invoke its own onmouse down, and so we have to put the
95
+ // raw HTML in there via v-html.
96
+ return (
97
+ ' <a target="_blank" class="" ' +
98
+ ' onmousedown="' +
99
+ this .job .onmousedown +
100
+ ' " ' +
101
+ ' href="' +
102
+ this .job .url +
103
+ ' ">' +
104
+ this .job .title +
105
+ ' </a>'
106
+ )
95
107
}
96
108
},
97
109
methods: {
You can’t perform that action at this time.
0 commit comments