1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-22 15:47:30 +00:00

Only show continuous mode if there are videos

This commit is contained in:
Cadence Ember 2021-04-27 19:44:17 +12:00
parent e0238d7e7d
commit d1e2202cae
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -79,8 +79,9 @@ block content
aside(style=continuous ? "display: none" : "")#standard-related-videos.related-videos aside(style=continuous ? "display: none" : "")#standard-related-videos.related-videos
.related-cols .related-cols
h2.related-header Related videos h2.related-header Related videos
.continuous-start if video.recommendedVideos.length
a(href=`/watch?v=${video.videoId}&continuous=1` nofollow) Continuous mode .continuous-start
a(href=`/watch?v=${video.videoId}&continuous=1` nofollow) Continuous mode
each r in video.recommendedVideos each r in video.recommendedVideos
+video_list_item("related-video", r, instanceOrigin) +video_list_item("related-video", r, instanceOrigin)