This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/Opinion.vue

52 lines
1.9 KiB
Vue
Raw Normal View History

<template>
2021-11-15 12:11:25 -08:00
<Twemoji>
<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')">
2022-04-23 14:10:23 -07:00
<Icon v="heart" set="s"/>
2021-10-29 07:48:01 -07:00
</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>
</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>
</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>
</span>
</span>
2021-11-15 12:11:25 -08:00
</Twemoji>
</template>
<script>
export default {
props: {
word: { required: true },
opinion: { required: true },
link: {},
},
}
</script>