2020-10-16 11:17:50 -07:00
|
|
|
<template>
|
|
|
|
<span>
|
2020-10-25 04:00:45 -07:00
|
|
|
<strong v-if="opinion === 1">
|
2020-10-31 08:08:48 -07:00
|
|
|
<img src="../node_modules/@fortawesome/fontawesome-pro/svgs/solid/heart.svg" :aria-label="$t('profile.opinion.yes')" class="icon"/>
|
2021-03-19 12:34:34 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling :text="word"/></nuxt-link>
|
2021-04-12 04:57:18 -07:00
|
|
|
<span v-else><Spelling escape :text="word"/></span>
|
2020-10-16 11:17:50 -07:00
|
|
|
</strong>
|
2020-11-23 09:14:46 -08:00
|
|
|
<span v-else-if="opinion === 2">
|
|
|
|
<Icon v="grin-tongue" :aria-label="$t('profile.opinion.jokingly')"/>
|
2021-03-19 12:34:34 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling :text="word"/></nuxt-link>
|
2021-04-12 04:57:18 -07:00
|
|
|
<span v-else><Spelling escape :text="word"/></span>
|
2020-11-23 09:14:46 -08:00
|
|
|
</span>
|
2020-10-25 04:00:45 -07:00
|
|
|
<span v-else-if="opinion === 0">
|
2020-10-31 08:08:48 -07:00
|
|
|
<Icon v="thumbs-up" :aria-label="$t('profile.opinion.meh')"/>
|
2021-03-19 12:34:34 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling :text="word"/></nuxt-link>
|
2021-04-12 04:57:18 -07:00
|
|
|
<span v-else><Spelling escape :text="word"/></span>
|
2020-10-16 11:17:50 -07:00
|
|
|
</span>
|
2020-10-25 04:00:45 -07:00
|
|
|
<span v-else-if="opinion === -1" class="text-muted small">
|
2020-10-31 08:08:48 -07:00
|
|
|
<Icon v="thumbs-down" :aria-label="$t('profile.opinion.no')"/>
|
2021-03-19 12:34:34 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling :text="word"/></nuxt-link>
|
2021-04-12 04:57:18 -07:00
|
|
|
<span v-else><Spelling escape :text="word"/></span>
|
2020-10-16 11:17:50 -07:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
word: { required: true },
|
|
|
|
opinion: { required: true },
|
|
|
|
link: {},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|