use new comment teaser template

This commit is contained in:
Hendrik L 2024-07-10 22:55:11 +02:00 committed by Hendrik L
parent ef5572260a
commit 563bf2a31d
4 changed files with 18 additions and 6 deletions

View file

@ -21,7 +21,10 @@
<h2 class="mt-4" id="comments">Deleted comments</h2>
<div class="post_list">
{% for post_reply in post_replies.items %}
{% include 'post/_post_reply_teaser.html' %}
{% with teaser=True, disable_voting=True, no_collapse=True %}
{% include 'post/_post_reply_teaser.html' %}
{% endwith %}
<hr />
{% else %}
<p>{{ _('No deleted comments.') }}</p>
{% endfor %}
@ -38,4 +41,4 @@
</div>
</div>
<hr />
{% endblock %}
{% endblock %}

View file

@ -19,7 +19,10 @@
<h2 class="mt-4" id="comments">Downvoted comments</h2>
<div class="post_list">
{% for post_reply in post_replies.items %}
{% include 'post/_post_reply_teaser.html' %}
{% with teaser=True, disable_voting=True, no_collapse=True %}
{% include 'post/_post_reply_teaser.html' %}
{% endwith %}
<hr />
{% endfor %}
</div>
{% else %}
@ -34,4 +37,4 @@
</div>
</div>
<hr />
{% endblock %}
{% endblock %}

View file

@ -20,7 +20,10 @@
<div class="post_list">
{% for post_reply in post_replies.items %}
{% include 'post/_post_reply_teaser.html' %}
{% with teaser=True %}
{% include 'post/_post_reply_teaser.html' %}
{% endwith %}
<hr />
{% else -%}
<p>{{ _('No comments have been bookmarked. Use the three dots on each comment to find the bookmark function.') }}</p>
{% endfor -%}

View file

@ -122,7 +122,10 @@
<h2 class="mt-4" id="comments">Comments</h2>
<div class="post_list">
{% for post_reply in post_replies.items %}
{% include 'post/_post_reply_teaser.html' %}
{% with teaser=True, disable_voting=True %}
{% include 'post/_post_reply_teaser.html' %}
{% endwith %}
<hr />
{% endfor %}
</div>
<nav aria-label="{{ _('Comment pagination') }}" class="mt-4" role="navigation">