From e3a76fc32046ed8aa20815baf95517f6f20c98ce Mon Sep 17 00:00:00 2001 From: kek7198 Date: Fri, 10 Dec 2021 16:47:35 -0600 Subject: [PATCH] fix --- .../templates/modals/ModalCommentActions.html | 92 +++++++++++++++---- .../modals/ModalSubmissionActions.html | 7 +- 2 files changed, 75 insertions(+), 24 deletions(-) diff --git a/files/templates/modals/ModalCommentActions.html b/files/templates/modals/ModalCommentActions.html index 5ce8b1d71..532a6aba3 100644 --- a/files/templates/modals/ModalCommentActions.html +++ b/files/templates/modals/ModalCommentActions.html @@ -76,50 +76,102 @@ {% endif %} - + {% endif %} {% if v and c.post and (v.admin_level >= 1 or v.id == c.post.author_id) and c.level == 1 %} - Pin - Unpin +
  • + +
  • +
  • + +
  • {% endif %} {% if v %} {% if v.admin_level>=1 and v.id==c.author_id %} - Distinguish - Undistinguish +
  • + +
  • +
  • + +
  • {% endif %} {% if v.admin_level>=3 %} - {% if "/reported/" in request.path %} - Remove - Approve - {% else %} - Remove - Approve - {% endif %} +
  • + +
  • +
  • + +
  • {% endif %} {% if v.admin_level >=4 and c.oauth_app %} - API App +
  • + + API App + +
  • {% endif %} {% if not v.id==c.author_id and not (c.post and c.post.award_count("ghosts")) %} - Unblock user - - Block user +
  • + +
  • + +
  • + +
  • {% endif %} {% endif %} {% if v and c.parent_submission and (c.author_id==v.id or v.admin_level > 0) %} - Mark +18 - Unmark +18 +
  • + +
  • +
  • + +
  • {% endif %} {% if v and (c.post and v.admin_level == 6) %} {% if c.author_id != v.id %} - Ban user - Unban user +
  • + +
  • + +
  • + +
  • {% endif %} {% endif %} diff --git a/files/templates/modals/ModalSubmissionActions.html b/files/templates/modals/ModalSubmissionActions.html index 3494adf4f..0dc55c6b0 100644 --- a/files/templates/modals/ModalSubmissionActions.html +++ b/files/templates/modals/ModalSubmissionActions.html @@ -120,12 +120,12 @@ {% if v==p.author %}
  • {% endif %} @@ -148,10 +148,9 @@ {% endif %} - {% endif %} - {% if v and v.id != p.author_id %} + {% if v and v.id != p.author_id and not p.award_count("ghosts") %}