Aevann 2023-07-30 10:10:33 +03:00
parent ea260589df
commit 87be8d1743
1 changed files with 8 additions and 2 deletions

View File

@ -186,8 +186,14 @@
{% endif %}
{% endif %}
{% if c.parent_comment_id and not standalone and level != 1 %}
<a href="#comment-{{c.parent_comment_id}}-only" class="text-muted ml-2 unbreakable">
{% if c.parent_comment_id %}
<a href="
{%- if level == 1 and not request.path.startswith('/more_comments/') -%}
{{c.parent_comment.permalink}}
{%- else -%}
#comment-{{c.parent_comment_id}}-only
{%- endif -%}
" class="text-muted ml-2 unbreakable">
<i class="fas fa-reply fa-sm fa-fw fa-flip-horizontal"></i>
{{c.parent_comment.author_name}}
</a>