feat: support for video tags

This commit is contained in:
Bnyro 2023-07-30 18:19:26 +02:00
parent 7a14ab08a2
commit 7cf1679960

View File

@ -168,6 +168,16 @@
<div v-if="video.category" v-text="`${$t('video.category')}: ${video.category}`" /> <div v-if="video.category" v-text="`${$t('video.category')}: ${video.category}`" />
<div v-text="`${$t('video.license')}: ${video.license}`" /> <div v-text="`${$t('video.license')}: ${video.license}`" />
<div class="capitalize" v-text="`${$t('video.visibility')}: ${video.visibility}`" /> <div class="capitalize" v-text="`${$t('video.visibility')}: ${video.visibility}`" />
<div v-if="video.tags" class="flex gap-2 mt-2">
<router-link
v-for="tag in video.tags"
:key="tag"
class="rounded-s px-2 py-1 btn"
:to="`/results?search_query=${encodeURIComponent(tag)}`"
>{{ tag }}</router-link
>
</div>
</template> </template>
</div> </div>