mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Rework subscribing to deleted channels
This commit is contained in:
parent
15e3f06ad6
commit
109dcd22de
12 changed files with 167 additions and 22 deletions
27
pug/channel-error.pug
Normal file
27
pug/channel-error.pug
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
extends includes/layout
|
||||
|
||||
include includes/video-list-item
|
||||
include includes/subscribe-button
|
||||
|
||||
block head
|
||||
title= `${data.row ? data.row.name : "Deleted channel"} - CloudTube`
|
||||
script(type="module" src=getStaticURL("html", "/static/js/channel.js"))
|
||||
|
||||
block content
|
||||
main.channel-page
|
||||
if data.row
|
||||
.channel-data
|
||||
.info
|
||||
- const iconURL = data.row.icon_url
|
||||
if iconURL
|
||||
.logo
|
||||
img(src=iconURL alt="").thumbnail-image
|
||||
.about
|
||||
h1.name= data.row.name
|
||||
+subscribe_button(data.ucid, subscribed, `/channel/${data.ucid}`).subscribe-button.base-border-look
|
||||
|
||||
.channel-error
|
||||
div= data.message
|
||||
|
||||
if data.missing && subscribed
|
||||
.you-should-unsubscribe To remove this channel from your subscriptions list, click Unsubscribe.
|
||||
Loading…
Add table
Add a link
Reference in a new issue