From 9e9f1252008d4bc28faf8100b2e4c1d67a43fd3b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 14 Jan 2022 12:22:37 +0200 Subject: [PATCH] bbb --- files/templates/admin/sidebar.html | 2 +- files/templates/comments.html | 8 ++++---- files/templates/sidebar_Drama.html | 6 +----- files/templates/sidebar_PCM.html | 3 ++- files/templates/sign_up.html | 2 +- files/templates/submission.html | 16 ++++++++-------- files/templates/submission_listing.html | 8 ++++---- files/templates/userpage.html | 4 ++-- 8 files changed, 23 insertions(+), 26 deletions(-) diff --git a/files/templates/admin/sidebar.html b/files/templates/admin/sidebar.html index 21f7c22b2e..ce8e66fcd9 100644 --- a/files/templates/admin/sidebar.html +++ b/files/templates/admin/sidebar.html @@ -27,7 +27,7 @@
- +
diff --git a/files/templates/comments.html b/files/templates/comments.html index 9018f7db06..0b6337d02e 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -219,7 +219,7 @@ @{{c.author.username}}'s profile picture{{c.author.username}} {% if c.author.customtitle %}  {% if c.author.quadrant %}{{c.author.quadrant}} quadrant{% endif %}{{c.author.customtitle | safe}}{% endif %} - {% if c.parent_comment_id and not standalone and level != 1 %}{{ c.parent_comment.author.username }}{% endif %} + {% if c.parent_comment_id and not standalone and level != 1 %}{{c.parent_comment.author.username}}{% endif %} {% if c.created_utc %}  {{c.age_string}} @@ -235,7 +235,7 @@

 				
    {% for f in c.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.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}[remove]{% endif %}
  • {% endfor %}
@@ -472,7 +472,7 @@ {% if v and v.admin_level > 1 and v.id != c.author_id %} - + {% endif %} {% if v and v.admin_level > 1 and c.oauth_app %} @@ -647,7 +647,7 @@ {% endif %} {% if v.id != c.author_id %} - Ban user + Ban user Unban user {% endif %} diff --git a/files/templates/sidebar_Drama.html b/files/templates/sidebar_Drama.html index 033d5656a4..ba34dc7ca6 100644 --- a/files/templates/sidebar_Drama.html +++ b/files/templates/sidebar_Drama.html @@ -1,10 +1,6 @@ @@ -508,7 +508,7 @@
- {{ p.embed_url | post_embed(v) | safe }} + {{p.embed_url | post_embed(v) | safe}}
@@ -610,7 +610,7 @@ {% endif %} {% if v.admin_level > 1 and v.id!=p.author_id %} - Ban user + Ban user Unban user {% endif %} {% endif %} @@ -869,8 +869,8 @@ {% if "?context" not in request.full_path %} const comments = JSON.parse(localStorage.getItem("comment-counts")) || {} - const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || { c: 0 }).c + 1) - comments['{{p.id}}'] = { c: newTotal, t: Date.now() } + const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || {c: 0}).c + 1) + comments['{{p.id}}'] = {c: newTotal, t: Date.now()} window.localStorage.setItem("comment-counts", JSON.stringify(comments)) {% endif %} })() diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index b0f22e7ea6..664c6fcc2b 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -86,7 +86,7 @@

 		
    {% for f in p.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.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}[remove]{% endif %}
  • {% endfor %}
@@ -141,7 +141,7 @@ post thumnail {% elif p.is_image %} - + post thumnail {% elif p.is_video %} @@ -301,7 +301,7 @@ {% endif %} {% if v.admin_level > 1 and v.id != p.author_id %} - Ban user + Ban user Unban user {% endif %} @@ -490,7 +490,7 @@ {% if v.id!=p.author_id %} - + {% endif %} diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 5dbcd7867b..47fc15ed82 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -43,8 +43,8 @@
{% if u.is_suspended %}
BANNED USER{% if u.ban_reason %}: - {% if u.ban_reason_link %}{% endif %} - {{ u.ban_reason }} + {% if u.ban_reason_link %}{% endif %} + {{u.ban_reason}} {% if u.ban_reason_link %}{% endif %} {% endif %}
{% if u.unban_utc %}
>{{u.unban_string}}
{% endif %}