From 57816cead87b304e98f28f98dab651be4da2fdaf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Dec 2021 02:21:27 +0200 Subject: [PATCH] rtgfd --- files/classes/comment.py | 2 +- files/templates/comments.html | 193 +++++++++++++++++----------------- 2 files changed, 97 insertions(+), 98 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index bc48306d8..a210f43fd 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -405,7 +405,7 @@ class Comment(Base): else: html += f''' onchange="poll_vote_no_v('{o.id}', '{self.id}')"''' html += f'''>
'
+			html += f'"> - {o.upvotes} votes'
 		return html
 
 class Notification(Base):
diff --git a/files/templates/comments.html b/files/templates/comments.html
index cb4126d67..0ba7fa05e 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -231,7 +231,7 @@
 				
removed by @{{c.ban_reason}}
{% endif %} -
+
{{c.realbody(v) | safe}} {% if c.options %} {{c.options_html(v) | safe}} @@ -301,138 +301,138 @@
    {% if v and v.admin_level > 1 %} - - - + {% endif %} - + {% if v and request.path.startswith('/@') and v.admin_level == 0%} - {% if voted==1 %} -
  • - {% endif %} - {% elif v %} - -
  • - - {% else %} -
  • - + {% if voted==1 %} + {% endif %} - -
  • - {{score}} -
  • - + {% elif v %} + + + + {% else %} + + + {% endif %} + + {{score}} + {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==-1 %} -
  • - {% endif %} + {% if voted==-1 %} +
  • + {% endif %} {% elif v %} -
  • - + + {% else %} - -
  • - + + + {% endif %} + + Votes + + {% if v %} + + + + + + + + {% endif %} + + Context -
  • 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 %} - + + + + {% if c.deleted_utc > 0 %} + + {% else %} + + {% 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 %} + {% if "/reported/" in request.path %} + + + {% else %} + + {% 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 + API App {% endif %} - - - + + + {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==1 %}
  • {% endif %} + {% if voted==1 %}{% endif %} {% elif v %} -
  • + {% else %} -
  • + {% endif %} -
  • {{score}}
  • + {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==-1 %} -
  • - {% endif %} + {% if voted==-1 %} + + {% endif %} {% elif v %} -
  • + {% else %} -
  • + {% endif %}
- {% endif %} -
+ {% endif %} +