mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
feat: add rss feed button for channels
This commit is contained in:
parent
cbedbd0626
commit
2f908f7968
1 changed files with 13 additions and 0 deletions
|
@ -75,12 +75,25 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<!-- Channel Image & Info -->
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<img :src="video.uploaderAvatar" alt="" loading="lazy" class="rounded-full" />
|
<img :src="video.uploaderAvatar" alt="" loading="lazy" class="rounded-full" />
|
||||||
<router-link v-if="video.uploaderUrl" class="link ml-1.5" :to="video.uploaderUrl">{{
|
<router-link v-if="video.uploaderUrl" class="link ml-1.5" :to="video.uploaderUrl">{{
|
||||||
video.uploader
|
video.uploader
|
||||||
}}</router-link>
|
}}</router-link>
|
||||||
|
<!-- Verified Badge -->
|
||||||
<font-awesome-icon class="ml-1" v-if="video.uploaderVerified" icon="check" />
|
<font-awesome-icon class="ml-1" v-if="video.uploaderVerified" icon="check" />
|
||||||
|
<!-- RSS Feed button -->
|
||||||
|
<a
|
||||||
|
aria-label="RSS feed"
|
||||||
|
title="RSS feed"
|
||||||
|
role="button"
|
||||||
|
v-if="video.uploaderUrl"
|
||||||
|
:href="`https://www.youtube.com/feeds/videos.xml?channel_id=${video.uploaderUrl.split('/')[2]}`"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<font-awesome-icon class="ml-3" icon="rss" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative ml-auto children:mx-2">
|
<div class="relative ml-auto children:mx-2">
|
||||||
<button class="btn" v-if="authenticated" @click="showModal = !showModal">
|
<button class="btn" v-if="authenticated" @click="showModal = !showModal">
|
||||||
|
|
Loading…
Reference in a new issue