diff options
author | James Taylor <28744867+user234683@users.noreply.github.com> | 2020-10-11 18:52:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 18:52:34 -0700 |
commit | 2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833 (patch) | |
tree | 7bad2fcf78184195bab8472acace235377ef7eed /youtube/templates/comments.html | |
parent | e182cf82839c7de137b05ba347fed7767d554020 (diff) | |
parent | 643a0e8659b7358bb2c06cc707e36b82b949c912 (diff) | |
download | yt-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.html | 9 |
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 %} |