From f1458c091f5e6bc96bfbd01023a05818754a965d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 9 May 2022 03:37:50 +0200 Subject: [PATCH 1/4] sfd --- files/routes/subs.py | 22 +++++++++++----------- files/templates/sidebar_Cringetopia.html | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index f9b179a2b6..5aeaeecfaa 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -220,19 +220,19 @@ def remove_mod(v, sub): return redirect(f'/h/{sub}/mods') -@app.get("/create_sub") -@is_not_permabanned -def create_sub(v): - if SITE_NAME == 'rDrama' and v.admin_level < 3: abort(403) +# @app.get("/create_sub") +# @is_not_permabanned +# def create_sub(v): +# if SITE_NAME == 'rDrama' and v.admin_level < 3: abort(403) - if request.host == 'rdrama.net': cost = 0 - else: - num = v.subs_created + 1 - for a in v.alts: - num += a.subs_created - cost = num * 100 +# if request.host == 'rdrama.net': cost = 0 +# else: +# num = v.subs_created + 1 +# for a in v.alts: +# num += a.subs_created +# cost = num * 100 - return render_template("sub/create_sub.html", v=v, cost=cost) +# return render_template("sub/create_sub.html", v=v, cost=cost) @app.post("/create_sub") diff --git a/files/templates/sidebar_Cringetopia.html b/files/templates/sidebar_Cringetopia.html index 7276f0c25b..b61fa75beb 100644 --- a/files/templates/sidebar_Cringetopia.html +++ b/files/templates/sidebar_Cringetopia.html @@ -13,7 +13,7 @@
{{sub.sidebar_html|safe}}
{% endif %} {% if v %} - CREATE HOLE + CREATE HOLE (temporarily disabled for 24 hours) {% if v.mods(sub.name) %} HOLE SETTINGS {% endif %} From e92aebc7d885974903d186025ddc041be9ab60f8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 9 May 2022 03:42:03 +0200 Subject: [PATCH 2/4] sf --- files/templates/sidebar_Cringetopia.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/sidebar_Cringetopia.html b/files/templates/sidebar_Cringetopia.html index b61fa75beb..877f8d72f4 100644 --- a/files/templates/sidebar_Cringetopia.html +++ b/files/templates/sidebar_Cringetopia.html @@ -22,7 +22,7 @@ HOLE EXILEES HOLE BLOCKERS {% else %} - CREATE HOLE + CREATE HOLE (temporarily disabled for 24 hours) BROWSE HOLES
From cbb76fff0c1026b0dd23fdbd8eb9a0d8132394fa Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 9 May 2022 04:15:15 +0200 Subject: [PATCH 3/4] dgf --- files/templates/submission_listing.html | 61 ++++++++++--------------- 1 file changed, 24 insertions(+), 37 deletions(-) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 38e5c8ab02..0dcaae6557 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -82,31 +82,27 @@
{% if v and request.path.startswith('/@') and v.admin_level < 2 %} - {% if voted==1 %} -
- {% endif %} +
{{score}} - {% if voted==-1 %} -
- {% endif %} +
{% elif v %} -
+
- {{score}} + {{score}} -
+
{% else %} -
+
- {{score}} + {{score}} -
+
{% endif %} @@ -259,43 +255,34 @@ {% if v and request.path.startswith('/@') and v.admin_level < 2 %}
  • - {% if voted==1 %} - - - {% endif %} + {{score}} - {% if voted==-1 %} - - {% endif %} - - +
  • {% elif v %} -
  • +
  • - - + - {{score}} + {{score}} - - + -
  • + {% else %} -
  • - - - +
  • + + + - {{score}} + {{score}} - - - -
  • + + + + {% endif %} {% endif %} From edb39d76f8583cde1047764627dd4716567319f3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 9 May 2022 04:15:32 +0200 Subject: [PATCH 4/4] sfd --- files/templates/submission_listing.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 0dcaae6557..24c637c846 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -81,13 +81,11 @@ {% if not postembed %}
    {% if v and request.path.startswith('/@') and v.admin_level < 2 %} -
    {{score}}
    - {% elif v %}
    @@ -253,14 +251,14 @@ {% endif %} {% if not postembed %} {% if v and request.path.startswith('/@') and v.admin_level < 2 %} -
  • +
  • - + - {{score}} + {{score}} - -
  • + + {% elif v %}