From 8cc67b2a951cefa676a02bf119710fdd09a0e097 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 22:00:02 +0200 Subject: [PATCH] fsdfsd --- files/classes/user.py | 6 +- 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 | 14 ++-- files/templates/default.html | 90 +++++++++++----------- files/templates/delete_post_modal.html | 2 +- files/templates/emoji_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/gif_modal.html | 2 +- files/templates/header.html | 10 +-- files/templates/home.html | 4 +- files/templates/log.html | 8 +- files/templates/login.html | 8 +- files/templates/login_2fa.html | 4 +- files/templates/mobile_navigation_bar.html | 2 +- files/templates/patrons.html | 2 +- files/templates/report_post_modal.html | 2 +- files/templates/settings.html | 16 ++-- files/templates/settings2.html | 16 ++-- files/templates/settings_blocks.html | 2 +- files/templates/settings_profile.html | 2 +- files/templates/settings_security.html | 2 +- files/templates/sign_up.html | 14 ++-- files/templates/sign_up_failed_ref.html | 10 +-- files/templates/submission.html | 32 ++++---- files/templates/submission_listing.html | 10 +-- files/templates/submit.html | 20 ++--- files/templates/userpage.html | 16 ++-- 44 files changed, 173 insertions(+), 173 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 1a9075c0d..8dadcb768 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -413,14 +413,14 @@ 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=3" + else: return f"https://{site}/assets/images/{site_name}/preview.webp?v=190 @property @lazy def profile_url(self): - if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=1" + if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=190 if self.profileurl: return self.profileurl - if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=1" + if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=190 return f"https://{site}/assets/images/default-profile-pic.webp" @property diff --git a/files/routes/static.py b/files/routes/static.py index 493899585..959d33435 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=5") + return send_file(f"./assets/images/{site_name}/icon.webp?v=190) @app.get("/api") @auth_desired diff --git a/files/templates/admin/badge_grant.html b/files/templates/admin/badge_grant.html index 5c85e1bfa..92a2f1374 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 e14c8c3a4..175f5c12b 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,11 +14,11 @@ {% if v %} - - {% if v.agendaposter %}{% elif v.css %}{% endif %} + {% endif %} {% else %} - + - + + + + - + {% endif %} - + + - + + + - - + + + diff --git a/files/templates/delete_post_modal.html b/files/templates/delete_post_modal.html index fce65dd52..eb3107d05 100644 --- a/files/templates/delete_post_modal.html +++ b/files/templates/delete_post_modal.html @@ -1,4 +1,4 @@ - + + + + + + + + + + + \ No newline at end of file + + + + + + + + + + + + + + + + + + - + {% endif %} {% if p.award_count("fireflies") %} - - + {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index be740f786..7302ac7a8 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -9,7 +9,7 @@ {% endif %} {% if not v or v.highlightcomments %} - + - - \ No newline at end of file + + + - - + + + +