unstomp on is_notification_page (#579)

* unstomp on `is_notification_page`

* remove duplicated reply button
This commit is contained in:
justcool393 2023-04-13 20:35:59 -07:00 committed by GitHub
parent 541af718bb
commit 94e40ff725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,8 @@
{%- set ups = c.upvotes_str(render_ctx) -%} {%- set ups = c.upvotes_str(render_ctx) -%}
{%- set score = c.score_str(render_ctx) -%} {%- set score = c.score_str(render_ctx) -%}
{%- set downs = c.downvotes_str(render_ctx) -%} {%- set downs = c.downvotes_str(render_ctx) -%}
{% set replies = c.replies(v) %} {% set replies = c.replies(v) %}
{%- set is_notification_page = request.path.startswith('/notifications') -%}
{% if not c.visibility_state(v)[0] %} {% if not c.visibility_state(v)[0] %}
{% if c.show_descendants(v) %} {% if c.show_descendants(v) %}
@ -143,8 +143,7 @@
</div> </div>
{% endif %} {% endif %}
{% if is_notification_page and c.level == 1 and c.sentto and not c.parent_submission and c.author_id not in (NOTIFICATIONS_ID, AUTOJANNY_ID) %} {% if is_notification_page and c.level == 1 and c.is_strict_message and c.author_id not in (NOTIFICATIONS_ID, AUTOJANNY_ID) %}
<a class="btn btn-primary mt-2" role="button" onclick="openReplyBox('reply-message-{{c.id}}')">Reply</a>
{%- include 'component/comment/replybox_message.html' -%} {%- include 'component/comment/replybox_message.html' -%}
{% endif %} {% endif %}
{% else %} {% else %}