From d3b189ad832d0109779d2461a4952f247064c028 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 5 Mar 2023 12:17:05 +0200 Subject: [PATCH] combine donate templates --- files/routes/static.py | 5 +-- .../{donate_WPD.html => donate.html} | 0 files/templates/donate_rDrama.html | 33 ------------------- 3 files changed, 1 insertion(+), 37 deletions(-) rename files/templates/{donate_WPD.html => donate.html} (100%) delete mode 100644 files/templates/donate_rDrama.html diff --git a/files/routes/static.py b/files/routes/static.py index d8c6a5111..1b4246f93 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -385,11 +385,8 @@ def transfers(v:User): return render_template("transfers.html", v=v, page=page, comments=comments, standalone=True, next_exists=next_exists) -if not os.path.exists(f'files/templates/donate_{SITE_NAME}.html'): - copyfile('files/templates/donate_rDrama.html', f'files/templates/donate_{SITE_NAME}.html') - @app.get('/donate') @limiter.limit(DEFAULT_RATELIMIT) @auth_desired_with_logingate def donate(v): - return render_template(f'donate_{SITE_NAME}.html', v=v) + return render_template(f'donate.html', v=v) diff --git a/files/templates/donate_WPD.html b/files/templates/donate.html similarity index 100% rename from files/templates/donate_WPD.html rename to files/templates/donate.html diff --git a/files/templates/donate_rDrama.html b/files/templates/donate_rDrama.html deleted file mode 100644 index 9c2571ba8..000000000 --- a/files/templates/donate_rDrama.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "default.html" %} -{% block pagetitle %}Donate{% endblock %} -{% block content %} -

Donate

-
- - - {% if v and v.truescore >= TRUESCORE_DONATE_MINIMUM %} - - - - - {% endif %} - - - - - - - - - - - - - - - - - -
{{DONATE_SERVICE}}{{DONATE_LINK}}
Ethereum/Brave Attention Token0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea
Bitcoinbc1qs5hamvytnkllgml89flzhcyt3l4a3u4gs8lvvp
Monero44hdEpAYXkB2VwkWz6LR9zZhcaG8zrUzn21aPy1HSdcsjT51fPdpMV8hkf5QQdHKs9VsAs3so5Vq5easdBbzmcifGcqfxfw
Merchhttps://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling
-
-{% endblock %}