mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
post-reply soft-deletion: collapse deleted comments in post view
This commit is contained in:
parent
9e80066d2a
commit
9ef5aeecb3
1 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@
|
||||||
aria-level="{{ comment['comment'].depth + 1 }}" role="treeitem" aria-expanded="true" tabindex="0">
|
aria-level="{{ comment['comment'].depth + 1 }}" role="treeitem" aria-expanded="true" tabindex="0">
|
||||||
<div class="limit_height">{% if not comment['comment'].author.indexable -%}<!--googleoff: all-->{% endif -%}
|
<div class="limit_height">{% if not comment['comment'].author.indexable -%}<!--googleoff: all-->{% endif -%}
|
||||||
<div class="comment_author">
|
<div class="comment_author">
|
||||||
{% with collapsed = comment['comment'].score < reply_collapse_threshold -%}
|
{% with collapsed = (comment['comment'].score < reply_collapse_threshold or comment['comment'].deleted) -%}
|
||||||
{{ render_username(comment['comment'].author) }}
|
{{ render_username(comment['comment'].author) }}
|
||||||
{% endwith -%}
|
{% endwith -%}
|
||||||
{% if comment['comment'].author.id == post.author.id -%}<span title="Submitter of original post" aria-label="{{ _('Post creator') }}" class="small">[OP] </span>{% endif -%}
|
{% if comment['comment'].author.id == post.author.id -%}<span title="Submitter of original post" aria-label="{{ _('Post creator') }}" class="small">[OP] </span>{% endif -%}
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
{% endwith -%}
|
{% endwith -%}
|
||||||
</div>
|
</div>
|
||||||
<div class="hide_button">
|
<div class="hide_button">
|
||||||
{% if comment['comment'].score <= reply_collapse_threshold -%}
|
{% if comment['comment'].score <= reply_collapse_threshold or comment['comment'].deleted -%}
|
||||||
<a href='#'><span class="fe fe-expand"></span></a>
|
<a href='#'><span class="fe fe-expand"></span></a>
|
||||||
{% else -%}
|
{% else -%}
|
||||||
<a href='#'><span class="fe fe-collapse"></span></a>
|
<a href='#'><span class="fe fe-collapse"></span></a>
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</div>
|
</div>
|
||||||
{% if comment['comment'].score <= reply_collapse_threshold -%}
|
{% if comment['comment'].score <= reply_collapse_threshold or comment['comment'].deleted -%}
|
||||||
<script nonce="{{ session['nonce'] }}" type="text/javascript">
|
<script nonce="{{ session['nonce'] }}" type="text/javascript">
|
||||||
toBeHidden.push({{ comment['comment'].id }});
|
toBeHidden.push({{ comment['comment'].id }});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue