From f9841bf0496c3df0b80c12ba603dc0dfad226f5c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 18 Oct 2022 13:17:54 +0200 Subject: [PATCH] remove 2 vestigal if statements --- files/templates/submission_listing.html | 79 ++++++++++++------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index ba66e4925d..c8baa3fa50 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -49,35 +49,32 @@
+
+ {% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %} +
- {% if not postembed %} -
- {% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %} -
+ {{score}} - {{score}} +
+ {% elif v %} -
- {% elif v %} +
-
+ {{score}} - {{score}} +
-
+ {% else %} - {% else %} +
-
+ {{score}} - {{score}} +
-
+ {% endif %} - {% endif %} - -
- {% endif %} +
@@ -248,39 +245,37 @@ {% endif %} - {% if not postembed %} - {% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %} -
  • + {% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %} +
  • - + - {{score}} + {{score}} - -
  • - {% elif v %} -
  • + +
  • + {% elif v %} +
  • - + - {{score}} + {{score}} - + -
  • - {% else %} -
  • - - - +
  • + {% else %} +
  • + + + - {{score}} + {{score}} - - - -
  • - {% endif %} + + + + {% endif %}