1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-10 02:27:29 +00:00
cloudtube/pug/channel.pug

32 lines
1023 B
Plaintext
Raw Normal View History

2020-08-30 13:54:59 +00:00
extends includes/layout
2020-08-29 13:21:48 +00:00
2020-08-30 13:54:59 +00:00
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"))
2020-08-29 13:21:48 +00:00
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
2020-08-30 13:54:59 +00:00
+subscribe_button(data.authorId, subscribed, `/channel/${data.authorId}`).subscribe-button.base-border-look
2020-08-29 13:21:48 +00:00
.description!= data.descriptionHtml
.videos
each video in data.latestVideos
+video_list_item("channel-video", video, instanceOrigin)