~cadence/cloudtube

ref: 7f756d5762710c8284407c6cc6ed69ce16f9392d cloudtube/pug/subscriptions.pug -rw-r--r-- 1.7 KiB
7f756d57Cadence Ember Add narration to "can't think" page 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
extends includes/layout.pug

include includes/video-list-item.pug

block head
  title Subscriptions - CloudTube
  script(type="module" src=getStaticURL("html", "/static/js/subscriptions.js"))

block content
  main.subscriptions-page
    if hasSubscriptions
      section
        details.channels-details
          summary #{channels.length} subscriptions
          .channels-list
            for channel in channels
              a(href=`/channel/${channel.ucid}`).channel-item
                img(src=channel.icon_url width=512 height=512 alt="").thumbnail
                span.name= channel.name

      if refreshed
        section
          details.channels-details
            summary Last refreshed #{timeToPastText(refreshed.min)}
            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
            div Your subscriptions will be regularly refreshed in the background so long as you log in frequently.

      if settings.save_history
        input(type="checkbox" id="watched-videos-display")
        .watched-videos-display-container
          label(for="watched-videos-display").watched-videos-display-label Hide watched videos

      each video in videos
        +video_list_item("subscriptions-video", video, instanceOrigin, {showMarkWatched: settings.save_history && !video.watched})
    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.