From 7377683c7b8d80f86e52e5e50b7dfdaa1c03fe9b Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 23 Aug 2021 14:00:07 +0200 Subject: [PATCH 1/8] try this --- files/templates/submission.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index e20b26503..e1215e5eb 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -306,7 +306,7 @@ {% endif %} {% endif %} -
+
{{p.realbody(v) | safe}}
From 7cc66c35f01ab28bfaa79d8932f0cb1f8ddfb329 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 23 Aug 2021 14:08:01 +0200 Subject: [PATCH 2/8] try this --- files/templates/submission.html | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index e1215e5eb..4f8d3aab3 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -190,31 +190,18 @@ {% endif %} - - {% if p.award_count("gold") %} -{% set sparkles = 10*p.award_count("gold") if p.award_count("gold") <= 5 else 50 %} {% endif %} From bf9f7896a7499c49ea0bb9f2e0d39daa82e98372 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 23 Aug 2021 14:16:26 +0200 Subject: [PATCH 4/8] Revert "try this" This reverts commit 6bbc0867 --- files/__main__.py | 8 ++++---- files/templates/submission.html | 33 +++++++++++++++++++++++---------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 4d9d2db33..b874bca7b 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -48,9 +48,9 @@ app.config["SESSION_COOKIE_SAMESITE"] = "Lax" app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365 app.config["SESSION_REFRESH_EACH_REQUEST"] = True -app.config["SLOGAN"] = environ.get("SLOGAN").strip() -app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR").strip() -app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME").strip() + "_" + environ.get("DEFAULT_COLOR").strip() +app.config["SLOGAN"] = environ.get("SLOGAN", "").strip() +app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ff0000").strip() +app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME", "light").strip() + "_" + environ.get("DEFAULT_COLOR", "ff0000").strip() app.config["FORCE_HTTPS"] = int(environ.get("FORCE_HTTPS", 1)) if ("localhost" not in app.config["SERVER_NAME"] and "127.0.0.1" not in app.config["SERVER_NAME"]) else 0 @@ -107,7 +107,7 @@ app.config["RATELIMIT_HEADERS_ENABLED"]=True limiter = Limiter( app, key_func=get_ipaddr, - default_limits=["100/minute"], + #default_limits=["100/minute"], headers_enabled=True, strategy="fixed-window" ) diff --git a/files/templates/submission.html b/files/templates/submission.html index 4f8d3aab3..e1215e5eb 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -190,18 +190,31 @@ {% endif %} + + {% if p.award_count("gold") %} +{% set sparkles = 10*p.award_count("gold") if p.award_count("gold") <= 5 else 50 %} {% endif %} From 5a3e2f643cea3a02d5be5a38a55207c0f2626ef4 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 23 Aug 2021 14:17:56 +0200 Subject: [PATCH 5/8] resize --- files/templates/submission.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index e1215e5eb..84bc7459d 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -306,7 +306,7 @@ {% endif %} {% endif %} -
+
{{p.realbody(v) | safe}}
From 1dbcee02c2ca6939c2977daa372d53be22d5d1c0 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 23 Aug 2021 14:20:24 +0200 Subject: [PATCH 6/8] dhuedhzuer --- files/templates/submission.html | 1 + 1 file changed, 1 insertion(+) diff --git a/files/templates/submission.html b/files/templates/submission.html index 84bc7459d..bb820fcc5 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -199,6 +199,7 @@ count: {{ sparkles }}, minAge: 500, maxAge: 1000, + position: "afterend", starsource: ` Date: Mon, 23 Aug 2021 14:21:15 +0200 Subject: [PATCH 7/8] dhuedhzuer --- files/templates/submission.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index bb820fcc5..8748c8e75 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -195,7 +195,7 @@ {% if p.award_count("gold") %} {% set sparkles = 10*p.award_count("gold") if p.award_count("gold") <= 5 else 50 %}