forked from rDrama/rDrama
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
commit
73ddff69a4
|
@ -436,3 +436,15 @@ def knowledgebase(v, page):
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
return render_template(template_path, v=v)
|
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)
|
|
@ -0,0 +1,31 @@
|
||||||
|
{% extends "default.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
<title>{{SITE_NAME}} - Donate</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1 class="py-3">Donate</h1>
|
||||||
|
<div class="overflow-x-auto">
|
||||||
|
<table class="table table-striped mb-5">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Gumroad (subscription)</td>
|
||||||
|
<td><a href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Gumroad (one-time)</td>
|
||||||
|
<td><a href="https://kippy.gumroad.com/l/onetime">https://kippy.gumroad.com/l/onetime</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Ethereum/Brave Attention Token</td>
|
||||||
|
<td>0xA02660a8898503F9B7d1aaF597eD62670C86D492</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>ADA</td>
|
||||||
|
<td>addr1v99u4l8hkdhv48g6ytqxwchavy86paxk55n6nsemleaaqncknae7w</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,31 @@
|
||||||
|
{% extends "default.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
<title>{{SITE_NAME}} - Donate</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1 class="py-3">Donate</h1>
|
||||||
|
<div class="overflow-x-auto">
|
||||||
|
<table class="table table-striped mb-5">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Kofi</td>
|
||||||
|
<td><a href="{{KOFI_LINK}}">{{KOFI_LINK}}</a></td>
|
||||||
|
</tr>
|
||||||
|
<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>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,39 @@
|
||||||
|
{% extends "default.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
<title>{{SITE_NAME}} - Donate</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1 class="py-3">Donate</h1>
|
||||||
|
<div class="overflow-x-auto">
|
||||||
|
<table class="table table-striped mb-5">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Gumroad</td>
|
||||||
|
<td><a href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td>
|
||||||
|
</tr>
|
||||||
|
<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>NFTs</td>
|
||||||
|
<td><a href="https://opensea.io/collection/marsey">https://opensea.io/collection/marsey</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Merch</td>
|
||||||
|
<td><a href="https://redbubble.com/people/rdramanet/shop">https://redbubble.com/people/rdramanet/shop</a></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -225,11 +225,7 @@
|
||||||
<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="{{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>
|
<a class="dropdown-item" href="/settings"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
|
||||||
{% if FEATURES['PROCOINS'] %}
|
{% if FEATURES['PROCOINS'] %}
|
||||||
{% if KOFI_LINK %}
|
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{KOFI_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
|
||||||
{% else %}
|
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button class="dropdown-item copy-link" data-clipboard-text="{{SITE_FULL}}/signup?ref={{v.username}}"><i class="fas fa-user-friends fa-fw mr-3"></i>Invite friends</button>
|
<button class="dropdown-item copy-link" data-clipboard-text="{{SITE_FULL}}/signup?ref={{v.username}}"><i class="fas fa-user-friends fa-fw mr-3"></i>Invite friends</button>
|
||||||
|
@ -291,11 +287,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if FEATURES['PROCOINS'] %}
|
{% if FEATURES['PROCOINS'] %}
|
||||||
{% if KOFI_LINK %}
|
<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>
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{KOFI_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
|
||||||
{% else %}
|
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not g.webview %}
|
{% if not g.webview %}
|
||||||
|
|
Loading…
Reference in New Issue