2020-10-16 11:17:50 -07:00
|
|
|
<template>
|
2021-11-15 12:11:25 -08:00
|
|
|
<Twemoji>
|
2020-10-16 11:17:50 -07:00
|
|
|
<span>
|
2020-10-25 04:00:45 -07:00
|
|
|
<strong v-if="opinion === 1">
|
2021-10-29 07:48:01 -07:00
|
|
|
<Tooltip :text="$t('profile.opinion.yes')">
|
|
|
|
<img src="../node_modules/@fortawesome/fontawesome-pro/svgs/solid/heart.svg" class="icon invertible"/>
|
|
|
|
</Tooltip>
|
2021-04-12 07:44:33 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling escape :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">
|
2021-10-29 07:48:01 -07:00
|
|
|
<Tooltip :text="$t('profile.opinion.jokingly')">
|
|
|
|
<Icon v="grin-tongue"/>
|
|
|
|
</Tooltip>
|
2021-04-12 07:44:33 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling escape :text="word"/></nuxt-link>
|
2021-10-29 08:08:41 -07:00
|
|
|
<span v-else><Spelling escape :text="word"/></span>
|
|
|
|
</span>
|
|
|
|
<span v-else-if="opinion === 3">
|
|
|
|
<Tooltip :text="$t('profile.opinion.close')">
|
|
|
|
<Icon v="user-friends"/>
|
|
|
|
</Tooltip>
|
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling escape :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">
|
2021-10-29 07:48:01 -07:00
|
|
|
<Tooltip :text="$t('profile.opinion.meh')">
|
|
|
|
<Icon v="thumbs-up"/>
|
|
|
|
</Tooltip>
|
2021-04-12 07:44:33 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling escape :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">
|
2021-10-29 07:48:01 -07:00
|
|
|
<Tooltip :text="$t('profile.opinion.no')">
|
|
|
|
<Icon v="thumbs-down"/>
|
|
|
|
</Tooltip>
|
2021-04-12 07:44:33 -07:00
|
|
|
<nuxt-link v-if="link" :to="link"><Spelling escape :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>
|
2021-11-15 12:11:25 -08:00
|
|
|
</Twemoji>
|
2020-10-16 11:17:50 -07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
word: { required: true },
|
|
|
|
opinion: { required: true },
|
|
|
|
link: {},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|