diff --git a/files/templates/comments.html b/files/templates/comments.html index 08ca7997a4..abe3d45da1 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -1,7 +1,3 @@ -{% if v %} - {% include "award_modal.html" %} -{% endif %} - +{% if v %} + {% include "award_modal.html" %} + + +{% endif %} + +{% if v and v.admin_level > 1 %} + +{% endif %} + + + + +{% include "expanded_image_modal.html" %} + + + {% macro single_comment(c, level=1) %} +{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %} + +{% endif %} + + +
{% for f in c.ordered_flags %} -- {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}[remove]{% endif %}
+ - {{f.user.username}}{% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v and v.admin_level > 1 %}[remove]{% endif %}
{% endfor %}
- - {% if v and request.path.startswith('/@') and v.admin_level == 0%} - {% if voted==1 %} - - {% endif %} - {% elif v %} - - - - {% else %} - - - {% endif %} - --
- {{score}}
-
-
- {% if v and request.path.startswith('/@') and v.admin_level == 0 %}
- {% if voted==-1 %}
-
- {% endif %}
- {% elif v %}
-
-
- {% else %}
-
-
-
- {% endif %}
-
- - Votes
-
- {% if v %}
- Give Award
-
- Unsave
-
- Save
-
- Reply
- {% endif %}
-
- Context
- Copy link
- {% if v %}
- Report
- {% endif %}
-
-
- {% if v and c.parent_submission and c.author_id==v.id %}
-
- Edit
-
- {% if c.deleted_utc > 0 %}
- Undelete
- {% else %}
- Delete
- {% endif %}
-
- {% endif %}
- {% if v and v.admin_level > 0 and v.id==c.author_id %}
- Undistinguish
- Distinguish
- {% endif %}
-
- {% if v and not v.id==c.author_id%}
- Unblock user
-
- Are you sure?
-
- Block user
- {% endif %}
-
- {% if v and c.post and (v.admin_level > 1 or v.id == c.post.author_id) %}
- Unpin
-
- Pin
- {% endif %}
-
-
- {% if v and v.admin_level > 1 %}
- {% if "/reported/" in request.path %}
- Approve
- Remove
- {% else %}
- Approve
- Remove
- {% endif %}
- {% endif %}
-
- {% if v and c.parent_submission and (c.author_id==v.id or v.admin_level > 0) %}
- Unmark +18
- Mark +18
- {% endif %}
-
- {% if v and v.admin_level > 1 and v.id != c.author_id %}
- Unban user
- Ban user
- {% endif %}
-
- {% if v and v.admin_level > 1 and c.oauth_app %}
- API App
- {% endif %}
-
-
- {% if v and request.path.startswith('/@') and v.admin_level == 0 %}
- {% if voted==1 %}{% endif %}
- {% elif v %}
-
- {% else %}
-
- {% endif %}
- - {{score}}
- {% if v and request.path.startswith('/@') and v.admin_level == 0 %}
- {% if voted==-1 %}
-
- {% endif %}
- {% elif v %}
-
- {% else %}
-
- {% endif %}
-
+ +Report 's comment
- -