unstomp on is_notification_page
This commit is contained in:
parent
b04849e5b7
commit
7515a21969
1 changed files with 27 additions and 26 deletions
|
@ -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,7 +143,8 @@
|
||||||
</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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue