aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/comments.html
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-07 19:03:22 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-07 20:32:57 +0200
commitdebc11931fe1102f17852fd082d0dac50d477ce9 (patch)
treea0d13036eaf138e3dbfa94942b305fd8534d5361 /youtube/templates/comments.html
parent9123d9a6cfa2af511b17591541ab2e67aa83475f (diff)
downloadyt-local-debc11931fe1102f17852fd082d0dac50d477ce9.tar.lz
yt-local-debc11931fe1102f17852fd082d0dac50d477ce9.tar.xz
yt-local-debc11931fe1102f17852fd082d0dac50d477ce9.zip
add comments.js
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 %}