From 563bf2a31d0a0ba1f8ffc29b62192ec2f70d6573 Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Wed, 10 Jul 2024 22:55:11 +0200 Subject: [PATCH] use new comment teaser template --- app/templates/admin/deleted_posts.html | 7 +++++-- app/templates/admin/spam_posts.html | 7 +++++-- app/templates/user/bookmarks_comments.html | 5 ++++- app/templates/user/show_profile.html | 5 ++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/templates/admin/deleted_posts.html b/app/templates/admin/deleted_posts.html index 1ad63f32..420ef09e 100644 --- a/app/templates/admin/deleted_posts.html +++ b/app/templates/admin/deleted_posts.html @@ -21,7 +21,10 @@

Deleted comments

{% 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 %} +
{% else %}

{{ _('No deleted comments.') }}

{% endfor %} @@ -38,4 +41,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/admin/spam_posts.html b/app/templates/admin/spam_posts.html index 6124d164..8c3c98eb 100644 --- a/app/templates/admin/spam_posts.html +++ b/app/templates/admin/spam_posts.html @@ -19,7 +19,10 @@

Downvoted comments

{% 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 %} +
{% endfor %}
{% else %} @@ -34,4 +37,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/user/bookmarks_comments.html b/app/templates/user/bookmarks_comments.html index 7f488fd9..031e5de0 100644 --- a/app/templates/user/bookmarks_comments.html +++ b/app/templates/user/bookmarks_comments.html @@ -20,7 +20,10 @@
{% for post_reply in post_replies.items %} - {% include 'post/_post_reply_teaser.html' %} + {% with teaser=True %} + {% include 'post/_post_reply_teaser.html' %} + {% endwith %} +
{% else -%}

{{ _('No comments have been bookmarked. Use the three dots on each comment to find the bookmark function.') }}

{% endfor -%} diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index 7d9ec758..1c1f31d4 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -122,7 +122,10 @@

Comments

{% 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 %} +
{% endfor %}