aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/comments.html
diff options
context:
space:
mode:
authorJames Taylor <28744867+user234683@users.noreply.github.com>2020-10-11 18:52:34 -0700
committerGitHub <noreply@github.com>2020-10-11 18:52:34 -0700
commit2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833 (patch)
tree7bad2fcf78184195bab8472acace235377ef7eed /youtube/templates/comments.html
parente182cf82839c7de137b05ba347fed7767d554020 (diff)
parent643a0e8659b7358bb2c06cc707e36b82b949c912 (diff)
downloadyt-local-2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833.tar.lz
yt-local-2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833.tar.xz
yt-local-2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833.zip
Merge pull request #23 from zrose584/comments_js
add comments.js for comment replies
Diffstat (limited to 'youtube/templates/comments.html')
-rw-r--r--youtube/templates/comments.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html
index f2cdf65..9d93b8c 100644
--- a/youtube/templates/comments.html
+++ b/youtube/templates/comments.html
@@ -22,7 +22,14 @@
<span class="likes">{{ comment['likes_text'] if comment['like_count'] else ''}}</span>
<div class="bottom-row">
- <a href="{{ comment['replies_url'] }}" class="replies">{{ comment['view_replies_text'] }}</a>
+ {% if settings.use_comments_js and comment['reply_count'] %}
+ <details class="replies" src="{{ comment['replies_url'] }}">
+ <summary>{{ comment['view_replies_text'] }}</summary>
+ <div class="comment_page">loading..</div>
+ </details>
+ {% else %}
+ <a href="{{ comment['replies_url'] }}" class="replies">{{ comment['view_replies_text'] }}</a>
+ {% endif %}
{% if 'delete_url' is in comment %}
<a href="{{ comment['delete_url'] }}" target="_blank">Delete</a>
{% endif %}