1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-14 12:27:28 +00:00
cloudtube/pug/channel.pug
Cadence Ember e0bc0d2e81
Implement watched videos
Watched videos on your subscriptions feed will be darkened, and the
option to hide all of them has been added.

This only takes effect if you have enabled saving watched videos on the
server in the settings menu - default is off.
2020-12-29 01:45:02 +13:00

32 lines
1.0 KiB
Plaintext

extends includes/layout
include includes/video-list-item
include includes/subscribe-button
block head
title= `${data.author} - CloudTube`
script(type="module" src=getStaticURL("html", "/static/js/channel.js"))
block content
main.channel-page
- const banner = data.authorBanners.slice(-1)[0]
if banner
.banner
img(src=banner.url width=banner.width height=banner.height alt="").banner-image
.channel-data
.info
- const thumbnail = data.authorThumbnails.slice(-1)[0]
if thumbnail
.logo
img(src=thumbnail.url width=thumbnail.width height=thumbnail.height alt="").thumbnail-image
.about
.name= data.author
.subscribers= data.second__subCountText || `${data.subCount} subscribers`
+subscribe_button(data.authorId, subscribed, `/channel/${data.authorId}`).subscribe-button.base-border-look
.description!= data.descriptionHtml
.videos
each video in data.latestVideos
+video_list_item("channel-video", video, instanceOrigin)