unstomp on is_notification_page
(#579)
* unstomp on `is_notification_page` * remove duplicated reply button
This commit is contained in:
parent
541af718bb
commit
94e40ff725
1 changed files with 26 additions and 27 deletions
|
@ -9,8 +9,8 @@
|
|||
{%- set ups = c.upvotes_str(render_ctx) -%}
|
||||
{%- set score = c.score_str(render_ctx) -%}
|
||||
{%- set downs = c.downvotes_str(render_ctx) -%}
|
||||
|
||||
{% set replies = c.replies(v) %}
|
||||
{%- set is_notification_page = request.path.startswith('/notifications') -%}
|
||||
|
||||
{% if not c.visibility_state(v)[0] %}
|
||||
{% if c.show_descendants(v) %}
|
||||
|
@ -143,8 +143,7 @@
|
|||
</div>
|
||||
{% 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) %}
|
||||
<a class="btn btn-primary mt-2" role="button" onclick="openReplyBox('reply-message-{{c.id}}')">Reply</a>
|
||||
{% if is_notification_page and c.level == 1 and c.is_strict_message and c.author_id not in (NOTIFICATIONS_ID, AUTOJANNY_ID) %}
|
||||
{%- include 'component/comment/replybox_message.html' -%}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue