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

View file

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

View file

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

View file

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