From d1e2202cae621eb2012b30487acb66dc6d133086 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 27 Apr 2021 19:44:17 +1200 Subject: [PATCH] Only show continuous mode if there are videos --- pug/video.pug | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pug/video.pug b/pug/video.pug index bfdd301..c1d4c5a 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -79,8 +79,9 @@ block content aside(style=continuous ? "display: none" : "")#standard-related-videos.related-videos .related-cols h2.related-header Related videos - .continuous-start - a(href=`/watch?v=${video.videoId}&continuous=1` nofollow) Continuous mode + if video.recommendedVideos.length + .continuous-start + a(href=`/watch?v=${video.videoId}&continuous=1` nofollow) Continuous mode each r in video.recommendedVideos +video_list_item("related-video", r, instanceOrigin)