donate.html improvement

master
Aevann 2023-10-05 17:35:52 +03:00
parent d1c9badb7a
commit b012d141e5
2 changed files with 5 additions and 9 deletions

View File

@ -426,8 +426,6 @@ def transfers(v):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
@auth_desired
def donate(v):
if v and (v.shadowbanned or v.chud == 1 or v.is_permabanned):
abort(404)
return render_template(f'donate.html', v=v)

View File

@ -5,13 +5,11 @@
<div class="overflow-x-auto">
<table class="table table-striped mb-5">
<tbody>
{% if v and v.truescore >= TRUESCORE_MINIMUM %}
{% if DONATE_SERVICE != DEFAULT_CONFIG_VALUE %}
<tr>
<td>{{DONATE_SERVICE}}</td>
<td><a rel="nofollow noopener" href="{{DONATE_LINK}}">{{DONATE_LINK}}</a></td>
</tr>
{% endif %}
{% if DONATE_SERVICE != DEFAULT_CONFIG_VALUE and v and v.truescore >= TRUESCORE_MINIMUM and not v.shadowbanned and not v.is_permabanned and v.chud != 1 %}
<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>