aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/comments_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/templates/comments_page.html')
-rw-r--r--youtube/templates/comments_page.html29
1 files changed, 14 insertions, 15 deletions
diff --git a/youtube/templates/comments_page.html b/youtube/templates/comments_page.html
index 047404a..3764b10 100644
--- a/youtube/templates/comments_page.html
+++ b/youtube/templates/comments_page.html
@@ -1,14 +1,12 @@
-{% set page_title = ('Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number']) %}
-{% extends "base.html" %}
-{% import "comments.html" as comments %}
-
-{% block style %}
- .comments-area{
- margin: auto;
- width:640px;
- }
-{% endblock style %}
+{% set page_title = ('Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number']|string) %}
+{% import "comments.html" as comments with context %}
+{% if not slim %}
+ {% extends "base.html" %}
+ {% block style %}
+ <link href="/youtube.com/static/comments.css" rel="stylesheet">
+ {% endblock style %}
+{% endif %}
{% block main %}
<section class="comments-area">
@@ -24,8 +22,6 @@
</section>
{% endif %}
- {{ comments.comment_posting_box(comment_posting_box_info) }}
-
{% if not comments_info['is_replies'] %}
<div class="comment-links">
{% for link_text, link_url in comments_info['comment_links'] %}
@@ -36,13 +32,16 @@
<div class="comments">
{% for comment in comments_info['comments'] %}
- {{ comments.render_comment(comment, comments_info['include_avatars']) }}
+ {{ comments.render_comment(comment, comments_info['include_avatars'], slim) }}
{% endfor %}
</div>
{% if 'more_comments_url' is in comments_info %}
<a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a>
{% endif %}
</section>
-{% endblock main %}
-
+ {% if settings.use_comments_js %}
+ <script src="/youtube.com/static/js/common.js"></script>
+ <script src="/youtube.com/static/js/comments.js"></script>
+ {% endif %}
+{% endblock main %}