From 9a461bc9a51e1945cbf057a87cfd0db1399d2cdb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 13 Aug 2021 02:07:07 +0200 Subject: [PATCH] fd --- files/routes/admin.py | 3 +- files/templates/errors/banaward.html | 20 ------ files/templates/header.html | 4 +- files/templates/submission.html | 26 ++++---- files/templates/submission_listing.html | 89 +++++++++++++------------ 5 files changed, 63 insertions(+), 79 deletions(-) delete mode 100644 files/templates/errors/banaward.html diff --git a/files/routes/admin.py b/files/routes/admin.py index b6d108d2b..e8328c9d2 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -171,7 +171,8 @@ def badge_grant_post(v): if url: new_badge.url = url g.db.add(new_badge) - + g.db.flush() + text = f""" @{v.username} has given you the following profile badge: \n\n![]({new_badge.path}) diff --git a/files/templates/errors/banaward.html b/files/templates/errors/banaward.html deleted file mode 100644 index 91083cc67..000000000 --- a/files/templates/errors/banaward.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "default.html" %} - -{% block title %} -401 Not Authorized -{% endblock %} - -{% block pagetype %}error-401{% endblock %} - -{% block content %} -
-
-
- -

401 Not Authorized

-

You have 0 ban awards (they're a patron perk):

- https://rdrama.gumroad.com/l/tfcvri -
-
-
-{% endblock %} \ No newline at end of file diff --git a/files/templates/header.html b/files/templates/header.html index 4eaaf5888..5638bd54d 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -101,7 +101,7 @@ Changelog Source code Discord - Gumroad + Donate Subreddit Archives Contact us @@ -156,7 +156,7 @@ - + diff --git a/files/templates/submission.html b/files/templates/submission.html index dd1a8a27c..7f74920b1 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -98,15 +98,15 @@ {% if v and v.id==p.author_id %} {% if p.private %} - + {% endif %} - + {% if p.deleted_utc > 0 %} - + {% else %} {% endif %} @@ -119,26 +119,26 @@ {% endif %} {% if v and p.id in v.subscribed_idlist() %} - + {% elif v %} - + {% endif %} {% if v and p.id in v.saved_idlist() %} - + {% elif v %} - + {% endif %} {% if v %} {% if v.admin_level >=3 %} - + {% if v==p.author %} - + {% endif %} - - + + {% endif %} {% if v.admin_level >=4 and p.oauth_app %} @@ -155,14 +155,14 @@ {% endif %} {% if v and (v.id==p.author_id or v.admin_level>=3) %} - + {% endif %} {% if v and v.admin_level == 6 and v.id!=p.author_id %} {% if p.author.is_banned %} {% else %} - + {% endif %} {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index de5971209..0ec932912 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -295,72 +295,75 @@