From cb2fc90770b643f6fb0bd73c17b1de0f3cddfbbb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 00:27:10 +0200 Subject: [PATCH] gfdg --- files/classes/badges.py | 2 +- files/templates/admin/badge_grant.html | 2 +- files/templates/admin/badge_remove.html | 2 +- files/templates/badges.html | 2 +- files/templates/patrons.html | 2 +- files/templates/submission.html | 6 +++--- files/templates/submission_listing.html | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/files/classes/badges.py b/files/classes/badges.py index bae3abea6..8c2d41456 100644 --- a/files/classes/badges.py +++ b/files/classes/badges.py @@ -53,7 +53,7 @@ class Badge(Base): @property @lazy def path(self): - return f"/static/assets/images/badges/{self.name.replace(' ','%20')}.webp?a=5" + return f"/static/assets/images/badges/{self.badge_id}.webp?a=5" @property @lazy diff --git a/files/templates/admin/badge_grant.html b/files/templates/admin/badge_grant.html index 10b4d2f7e..3cd252d39 100644 --- a/files/templates/admin/badge_grant.html +++ b/files/templates/admin/badge_grant.html @@ -60,7 +60,7 @@ - + {{v['name']}} {{v['description']}} diff --git a/files/templates/admin/badge_remove.html b/files/templates/admin/badge_remove.html index c225978c3..712d66c1d 100644 --- a/files/templates/admin/badge_remove.html +++ b/files/templates/admin/badge_remove.html @@ -60,7 +60,7 @@ - + {{v['name']}} {{v['description']}} diff --git a/files/templates/badges.html b/files/templates/badges.html index f244aab80..259fdb899 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -21,7 +21,7 @@ {% for k,v in badges.items() %} {{v['name']}} - {{v['name']}} + {{v['name']}} {{v['description']}} {% endfor %} diff --git a/files/templates/patrons.html b/files/templates/patrons.html index e2e36ab0c..02d7506dd 100644 --- a/files/templates/patrons.html +++ b/files/templates/patrons.html @@ -14,7 +14,7 @@ {{loop.index}} @{{u.username}}'s profile picture{{u.username}} - Patron-{{u.patron}} + 2{{u.patron}} {% endfor %} diff --git a/files/templates/submission.html b/files/templates/submission.html index 4ec3b2c25..870ad62c7 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -356,11 +356,11 @@ {% if p.over_18 %}+18{% endif %} {% if p.private %}Draft{% endif %} {% if p.active_flags %}{{p.active_flags}} Reports{% endif %} - {% if p.author.verified %} - {% endif %} {% if p.author_name == '👻' %} 👻 - {% else %} + {% else %} + {% if p.author.verified %} + {% endif %} @{{p.author_name}}'s profile picture{{p.author_name}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{{p.author.quadrant}} quadrant{% endif %}{{p.author.customtitle | safe}}{% endif %} {% endif %}  {{p.age_string}} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 3e0378543..14613a96c 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -187,11 +187,11 @@ {% if p.is_blocked %}{% endif %} {% if p.private %}Draft{% endif %} {% if p.active_flags %}{{p.active_flags}} Reports{% endif %} - {% if p.author.verified %} - {% endif %} {% if p.author_name == '👻' %} 👻 {% else %} + {% if p.author.verified %} + {% endif %} @{{p.author.profile_url}}'s profile picture{{p.author_name}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{{p.author.quadrant}} quadrant{% endif %}{{p.author.customtitle | safe}}{% endif %} {% endif %}  {{p.age_string}}