1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-05-26 12:32:25 +00:00

Add "mark watched" button to subscriptions page

This commit is contained in:
Cadence Ember 2021-01-09 14:09:59 +13:00
parent 27435cc3b5
commit ac28332ac0
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
7 changed files with 83 additions and 18 deletions

View file

@ -4,6 +4,7 @@ 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
@ -34,7 +35,7 @@ block content
label(for="watched-videos-display").watched-videos-display-label Hide watched videos
each video in videos
+video_list_item("subscriptions-video", video, instanceOrigin)
+video_list_item("subscriptions-video", video, instanceOrigin, {showMarkWatched: settings.save_history && !video.watched})
else
.no-subscriptions
h2 You have no subscriptions.