2020-08-30 15:14:05 +00:00
|
|
|
extends includes/layout.pug
|
|
|
|
|
|
|
|
include includes/video-list-item.pug
|
|
|
|
|
|
|
|
block head
|
|
|
|
title Subscriptions - CloudTube
|
2021-01-09 01:09:59 +00:00
|
|
|
script(type="module" src=getStaticURL("html", "/static/js/subscriptions.js"))
|
2020-08-30 15:14:05 +00:00
|
|
|
|
|
|
|
block content
|
|
|
|
main.subscriptions-page
|
2020-08-31 13:22:16 +00:00
|
|
|
if hasSubscriptions
|
|
|
|
section
|
|
|
|
details.channels-details
|
2022-01-10 01:18:45 +00:00
|
|
|
summary
|
|
|
|
| #{channels.length} subscriptions
|
|
|
|
if missingChannelCount === 1
|
|
|
|
= ` - ${missingChannelCount} channel is gone`
|
|
|
|
else if missingChannelCount > 1
|
|
|
|
= ` - ${missingChannelCount} channels are gone`
|
2020-08-31 13:22:16 +00:00
|
|
|
.channels-list
|
|
|
|
for channel in channels
|
|
|
|
a(href=`/channel/${channel.ucid}`).channel-item
|
|
|
|
img(src=channel.icon_url width=512 height=512 alt="").thumbnail
|
2022-01-10 01:18:45 +00:00
|
|
|
div
|
|
|
|
div.name= channel.name
|
|
|
|
if channel.missing
|
|
|
|
div.missing-reason
|
|
|
|
if channel.missing_reason
|
|
|
|
= channel.missing_reason
|
|
|
|
else
|
|
|
|
| This channel appears to be deleted or terminated. Click to check it.
|
2020-08-31 13:22:16 +00:00
|
|
|
|
2020-09-23 12:48:32 +00:00
|
|
|
if refreshed
|
|
|
|
section
|
|
|
|
details.channels-details
|
2020-09-24 07:59:22 +00:00
|
|
|
summary Last refreshed #{timeToPastText(refreshed.min)}
|
2020-09-23 12:48:32 +00:00
|
|
|
div Oldest channel was refreshed #{timeToPastText(refreshed.min)}
|
|
|
|
div Newest channel was refreshed #{timeToPastText(refreshed.max)}
|
|
|
|
- const notLoaded = channels.length - refreshed.count
|
|
|
|
if notLoaded
|
|
|
|
div #{notLoaded} subscriptions have not been refreshed at all
|
2021-08-21 04:48:15 +00:00
|
|
|
div Your subscriptions will be regularly refreshed in the background if you have visited recently.
|
2020-09-23 12:48:32 +00:00
|
|
|
|
2020-12-28 12:42:25 +00:00
|
|
|
if settings.save_history
|
|
|
|
input(type="checkbox" id="watched-videos-display")
|
2021-12-28 03:32:11 +00:00
|
|
|
.checkbox-hider__container
|
|
|
|
label(for="watched-videos-display").checkbox-hider__label Hide watched videos
|
2020-12-28 12:42:25 +00:00
|
|
|
|
2020-08-31 13:22:16 +00:00
|
|
|
each video in videos
|
2021-01-09 01:09:59 +00:00
|
|
|
+video_list_item("subscriptions-video", video, instanceOrigin, {showMarkWatched: settings.save_history && !video.watched})
|
2020-08-31 13:22:16 +00:00
|
|
|
else
|
|
|
|
.no-subscriptions
|
|
|
|
h2 You have no subscriptions.
|
|
|
|
p Subscribing to a channel makes its videos appear here.
|
|
|
|
p You can find the subscribe button on channels and videos.
|