combine donate templates

master
Aevann 2023-03-05 12:17:05 +02:00
parent d545316b3b
commit d3b189ad83
3 changed files with 1 additions and 37 deletions

View File

@ -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) 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') @app.get('/donate')
@limiter.limit(DEFAULT_RATELIMIT) @limiter.limit(DEFAULT_RATELIMIT)
@auth_desired_with_logingate @auth_desired_with_logingate
def donate(v): def donate(v):
return render_template(f'donate_{SITE_NAME}.html', v=v) return render_template(f'donate.html', v=v)

View File

@ -1,33 +0,0 @@
{% extends "default.html" %}
{% block pagetitle %}Donate{% endblock %}
{% block content %}
<h1 class="py-3">Donate</h1>
<div class="overflow-x-auto">
<table class="table table-striped mb-5">
<tbody>
{% if v and v.truescore >= TRUESCORE_DONATE_MINIMUM %}
<tr>
<td>{{DONATE_SERVICE}}</td>
<td><a rel="nofollow noopener" href="{{DONATE_LINK}}">{{DONATE_LINK}}</a></td>
</tr>
{% endif %}
<tr>
<td>Ethereum/Brave Attention Token</td>
<td>0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea</td>
</tr>
<tr>
<td>Bitcoin</td>
<td>bc1qs5hamvytnkllgml89flzhcyt3l4a3u4gs8lvvp</td>
</tr>
<tr>
<td>Monero</td>
<td>44hdEpAYXkB2VwkWz6LR9zZhcaG8zrUzn21aPy1HSdcsjT51fPdpMV8hkf5QQdHKs9VsAs3so5Vq5easdBbzmcifGcqfxfw</td>
</tr>
<tr>
<td>Merch</td>
<td><a rel="nofollow noopener" href="https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling">https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling</a></td>
</tr>
</tbody>
</table>
</div>
{% endblock %}