From 43125be0744b30397d3a9b91208260e0b5ecf514 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 22:00:30 +0200 Subject: [PATCH] sdffds --- files/classes/user.py | 8 ++--- files/routes/static.py | 2 +- files/templates/admin/badge_grant.html | 2 +- files/templates/authforms.html | 8 ++--- files/templates/award_modal.html | 2 +- files/templates/badges.html | 2 +- files/templates/ban_modal.html | 2 +- files/templates/changelog.html | 2 +- files/templates/comments.html | 8 ++--- files/templates/default.html | 32 +++++++++---------- files/templates/delete_post_modal.html | 2 +- files/templates/errors/400.html | 2 +- files/templates/errors/401.html | 2 +- files/templates/errors/403.html | 2 +- files/templates/errors/404.html | 2 +- files/templates/errors/405.html | 2 +- files/templates/errors/429.html | 2 +- files/templates/errors/500.html | 2 +- files/templates/errors/nsfw.html | 2 +- files/templates/errors/patron.html | 2 +- files/templates/followers.html | 2 +- files/templates/following.html | 2 +- files/templates/formatting.html | 8 ++--- files/templates/header.html | 10 +++--- files/templates/home.html | 6 ++-- files/templates/leaderboard.html | 2 +- files/templates/log.html | 8 ++--- files/templates/login.html | 8 ++--- files/templates/login_2fa.html | 4 +-- files/templates/patrons.html | 2 +- files/templates/report_post_modal.html | 2 +- files/templates/settings.html | 22 ++++++------- files/templates/settings2.html | 16 +++++----- files/templates/settings_blocks.html | 2 +- files/templates/settings_profile.html | 6 ++-- files/templates/shop.html | 2 +- files/templates/sign_up.html | 16 +++++----- files/templates/sign_up_failed_ref.html | 10 +++--- files/templates/submission.html | 16 +++++----- .../submission/SubmissionAwards.html | 16 +++++----- files/templates/submission_listing.html | 4 +-- files/templates/submit.html | 6 ++-- files/templates/userpage.html | 4 +-- files/templates/userpage_comments.html | 2 +- files/templates/userpage_private.html | 2 +- 45 files changed, 133 insertions(+), 133 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 0a77ab390..d7259f1f8 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -416,15 +416,15 @@ class User(Base): @lazy def banner_url(self): if self.bannerurl: return self.bannerurl - else: return f"https://{site}/assets/images/{site_name}/preview.webp?v=500 + else: return f"https://{site}/assets/images/{site_name}/preview.webp?v=200 @property @lazy def profile_url(self): - if self.grinch: return f"https://{site}/assets/images/grinch.webp?v=500 - if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=500 + if self.grinch: return f"https://{site}/assets/images/grinch.webp?v=200 + if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=200 if self.profileurl: return self.profileurl - if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=500 + if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=200 return f"https://{site}/assets/images/default-profile-pic.webp" @property diff --git a/files/routes/static.py b/files/routes/static.py index 6c6edcb3e..0f2ed1834 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -212,7 +212,7 @@ def log_item(id, v): @app.get("/assets/favicon.ico") def favicon(): - return send_file(f"./assets/images/{site_name}/icon.webp?v=500) + return send_file(f"./assets/images/{site_name}/icon.webp?v=200) @app.get("/api") @auth_desired diff --git a/files/templates/admin/badge_grant.html b/files/templates/admin/badge_grant.html index 331cd2c39..9ba7f3f17 100644 --- a/files/templates/admin/badge_grant.html +++ b/files/templates/admin/badge_grant.html @@ -55,7 +55,7 @@ {% for k, v in badge_types.items() %} - + {{v['name']}} {{v['description']}} diff --git a/files/templates/authforms.html b/files/templates/authforms.html index e0d9f55f5..1b2c71ff5 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,11 +14,11 @@ {% if v %} - {% endif %} + {% endif %} {% else %} - - + + + + {% endif %} {% if v and v.admin_level > 1 %} - {% endif %} - {% include "expanded_image_modal.html" %} diff --git a/files/templates/default.html b/files/templates/default.html index 02f47a6b2..eae66de69 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -186,31 +186,31 @@ {% block stylesheets %} - {% endassets %} - {% endif %} {% else %} - + {% endif %} {% endblock %} - -