diff --git a/files/classes/badges.py b/files/classes/badges.py index 3e9e1a371..cbf32cf28 100644 --- a/files/classes/badges.py +++ b/files/classes/badges.py @@ -26,8 +26,8 @@ class BadgeDef(Base): @property @lazy def path(self): - if 20 < self.id < 28 or self.id == 222: return SITE_FULL + f"/i/{SITE_NAME}/badges/{self.id}.webp" - return SITE_FULL + f"/i/badges/{self.id}.webp" + if 20 < self.id < 28 or self.id == 222: return SITE_FULL + f"/i/{SITE_NAME}/badges/{self.id}.webp?b=7" + return SITE_FULL + f"/i/badges/{self.id}.webp?b=7" class Badge(Base): diff --git a/files/templates/admin/badge_admin.html b/files/templates/admin/badge_admin.html index 234d3eecd..2bea1a183 100644 --- a/files/templates/admin/badge_admin.html +++ b/files/templates/admin/badge_admin.html @@ -37,7 +37,7 @@ {{badge.name}} diff --git a/files/templates/badges.html b/files/templates/badges.html index 7a005bafa..c5899ee82 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -21,7 +21,7 @@ {{badge.id}} {{badge.name}} - {{badge.name}} + {{badge.name}} {{badge.description}} {%- set ct = counts[badge.id] if badge.id in counts else (0, 0) %} diff --git a/files/templates/userpage/banner.html b/files/templates/userpage/banner.html index 7686d6dfc..6e3418fe8 100644 --- a/files/templates/userpage/banner.html +++ b/files/templates/userpage/banner.html @@ -247,10 +247,10 @@ {% for b in u.badges %} {% if b.url %} - {{b.name}} + {{b.name}} {% else %} - {{b.name}} + {{b.name}} {% endif %} {% endfor %} @@ -393,10 +393,10 @@ {% for b in u.badges %} {% if b.url %} - {{b.name}} + {{b.name}} {% else %} - {{b.name}} + {{b.name}} {% endif %} {% endfor %}