pull/225/head
Aevann 2024-03-09 14:10:58 +02:00
parent c18cac1b70
commit 6ba22e0b61
1 changed files with 24 additions and 24 deletions

View File

@ -308,33 +308,33 @@
{{- macros.sorting_buttons(COMMENT_SORTS, True) -}} {{- macros.sorting_buttons(COMMENT_SORTS, True) -}}
</div> </div>
{{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}} {{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}}
{% if focused_comment %} {% if focused_comment %}
<div class="total mt-1"><a href="{{p.permalink}}">View entire discussion <i class="fas fa-long-arrow-right ml-1"></i></a></div> <div class="total mt-1"><a href="{{p.permalink}}">View entire discussion <i class="fas fa-long-arrow-right ml-1"></i></a></div>
{% endif %} {% endif %}
{% if p.replies %} {% if p.replies %}
<div class="comment-section" id="replies-of-{{p.fullname}}"> <div class="comment-section" id="replies-of-{{p.fullname}}">
{% with comments=p.replies %} {% with comments=p.replies %}
{% include "comments.html" %} {% include "comments.html" %}
{% endwith %} {% endwith %}
</div> </div>
{% if offset %} {% if offset %}
<script defer src="{{'js/view_more.js' | asset}}"></script> <script defer src="{{'js/view_more.js' | asset}}"></script>
{% endif %} {% endif %}
{% elif not p.replies and p.deleted_utc == 0 %} {% elif not p.replies and p.deleted_utc == 0 %}
<div class="comment-section no-replies" id="replies-of-{{p.fullname}}"> <div class="comment-section no-replies" id="replies-of-{{p.fullname}}">
{% if v %} {% if v %}
{% set ghost_town = 'This comment section is a ghost town...' %} {% set ghost_town = 'This comment section is a ghost town...' %}
{% else %} {% else %}
{% set ghost_town = 'This comment section is a ghost town... <a href="/login?redirect={{request.full_path | urlencode}}">Sign in</a></p> '%} {% set ghost_town = 'This comment section is a ghost town... <a href="/login?redirect={{request.full_path | urlencode}}">Sign in</a></p> '%}
{% endif %}
{{macros.ghost_box('Be the first to comment!', ghost_town, 1)}}
</div>
{% endif %} {% endif %}
{{macros.ghost_box('Be the first to comment!', ghost_town, 1)}}
</div> </div>
{% endif %}
</div>
</div> </div>
{% if v %} {% if v %}