forked from rDrama/rDrama
sneed
parent
f42d861cae
commit
b9d7b4e027
|
@ -413,7 +413,7 @@ if not os.path.exists(f'files/templates/donate_{SITE_NAME}.html'):
|
|||
@app.get('/donate')
|
||||
@auth_required
|
||||
def donate(v):
|
||||
if not v.truecoins: abort(404)
|
||||
if v.truecoins < 1000: abort(404)
|
||||
return render_template(f'donate_{SITE_NAME}.html', v=v)
|
||||
|
||||
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
<div class="px-2">
|
||||
<a class="dropdown-item" href="{{v.url}}"><i class="fas fa-user-circle fa-fw mr-3"></i>My profile</a>
|
||||
<a class="dropdown-item" href="/settings"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins %}
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %}
|
||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||
{% endif %}
|
||||
|
||||
|
@ -298,7 +298,7 @@
|
|||
<a class="nav-link" href="/settings"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
|
||||
</li>
|
||||
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins %}
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %}
|
||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
<div class="footer">
|
||||
<div class="d-flex">
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins %}
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %}
|
||||
{% if KOFI_TOKEN %}
|
||||
<a class="btn btn-success" role="button" onclick="post_toast(this,'/settings/kofi')">Claim {{patron}} rewards</a>
|
||||
{% else %}
|
||||
|
@ -57,7 +57,7 @@
|
|||
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Add email">
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins %}
|
||||
{% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %}
|
||||
<span class="text-small text-muted pl-1">Must be same email as the one you used to donate on
|
||||
{% if KOFI_TOKEN %}
|
||||
<a rel="nofollow noopener noreferrer" class="text-primary" href="{{KOFI_LINK}}">Kofi</a>
|
||||
|
|
Loading…
Reference in New Issue