From 4b6efb0e0baa290eaa43a01f672e22c1460ed6ea Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 20 Dec 2019 20:50:16 -0800 Subject: Watch: display comment count and whether comments are disabled --- youtube/templates/watch.html | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'youtube/templates/watch.html') diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index f00127b..9cb26ae 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -154,6 +154,11 @@ grid-row: 3; margin-top:10px; } + .comments-disabled{ + background-color: var(--interface-color); + padding: 5px; + font-weight: bold; + } .comments-area-inner{ padding-top: 10px; } @@ -324,13 +329,17 @@ {% endif %} {% if comments_mode != 0 %} -
- Comments -
- {% if comments_info %} - {{ comments.video_comments(comments_info) }} - {% endif %} -
-
+ {% if comments_disabled %} +
Comments disabled
+ {% else %} +
+ {{ comment_count|commatize }} comment{{'s' if comment_count != 1 else ''}} +
+ {% if comments_info %} + {{ comments.video_comments(comments_info) }} + {% endif %} +
+
+ {% endif %} {% endif %} {% endblock main %} -- cgit v1.2.3