diff --git a/files/routes/static.py b/files/routes/static.py index c050d098b..be78b2093 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -435,4 +435,16 @@ def knowledgebase(v, page): if not os.path.exists('files/templates/' + template_path): abort(404) - return render_template(template_path, v=v) \ No newline at end of file + return render_template(template_path, v=v) + + +if not os.path.exists(f'files/templates/donate_{SITE_NAME}.html'): + copyfile(f'files/templates/donate_rDrama.html', f'files/templates/donate_{SITE_NAME}.html') + +@app.get('/donate') +@auth_desired +def donate(v): + if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}") + if v and request.path.startswith('/logged_out'): return redirect(request.full_path.replace('/logged_out','')) + + return render_template(f'donate_{SITE_NAME}.html', v=v) \ No newline at end of file diff --git a/files/templates/donate_PCM.html b/files/templates/donate_PCM.html new file mode 100644 index 000000000..02b1863f8 --- /dev/null +++ b/files/templates/donate_PCM.html @@ -0,0 +1,31 @@ +{% extends "default.html" %} + +{% block title %} + {{SITE_NAME}} - Donate +{% endblock %} + +{% block content %} +

Donate

+
+ + + + + + + + + + + + + + + + + + + +
Gumroad (subscription){{GUMROAD_LINK}}
Gumroad (one-time)https://kippy.gumroad.com/l/onetime
Ethereum/Brave Attention Token0xA02660a8898503F9B7d1aaF597eD62670C86D492
ADAaddr1v99u4l8hkdhv48g6ytqxwchavy86paxk55n6nsemleaaqncknae7w
+
+{% endblock %} \ No newline at end of file diff --git a/files/templates/donate_WPD.html b/files/templates/donate_WPD.html new file mode 100644 index 000000000..9f4939d00 --- /dev/null +++ b/files/templates/donate_WPD.html @@ -0,0 +1,31 @@ +{% extends "default.html" %} + +{% block title %} +{{SITE_NAME}} - Donate +{% endblock %} + +{% block content %} +

Donate

+
+ + + + + + + + + + + + + + + + + + + +
Kofi{{KOFI_LINK}}
Ethereum/Brave Attention Token0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea
Bitcoinbc1qs5hamvytnkllgml89flzhcyt3l4a3u4gs8lvvp
Monero44hdEpAYXkB2VwkWz6LR9zZhcaG8zrUzn21aPy1HSdcsjT51fPdpMV8hkf5QQdHKs9VsAs3so5Vq5easdBbzmcifGcqfxfw
+
+{% endblock %} \ No newline at end of file diff --git a/files/templates/donate_rDrama.html b/files/templates/donate_rDrama.html new file mode 100644 index 000000000..18c66661d --- /dev/null +++ b/files/templates/donate_rDrama.html @@ -0,0 +1,39 @@ +{% extends "default.html" %} + +{% block title %} + {{SITE_NAME}} - Donate +{% endblock %} + +{% block content %} +

Donate

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Gumroad{{GUMROAD_LINK}}
Ethereum/Brave Attention Token0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea
Bitcoinbc1qs5hamvytnkllgml89flzhcyt3l4a3u4gs8lvvp
Monero44hdEpAYXkB2VwkWz6LR9zZhcaG8zrUzn21aPy1HSdcsjT51fPdpMV8hkf5QQdHKs9VsAs3so5Vq5easdBbzmcifGcqfxfw
NFTshttps://opensea.io/collection/marsey
Merchhttps://redbubble.com/people/rdramanet/shop
+
+{% endblock %} \ No newline at end of file diff --git a/files/templates/header.html b/files/templates/header.html index 2dbf48aee..38816ef88 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -225,11 +225,7 @@ My profile Settings {% if FEATURES['PROCOINS'] %} - {% if KOFI_LINK %} - Donate - {% else %} - Donate - {% endif %} + Donate {% endif %} @@ -291,11 +287,7 @@ {% if FEATURES['PROCOINS'] %} - {% if KOFI_LINK %} - Donate - {% else %} - Donate - {% endif %} + Donate {% endif %} {% if not g.webview %}