forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-22 18:33:18 +02:00
parent 126958dd89
commit 60500fb140
4 changed files with 9 additions and 4 deletions

View File

@ -40,7 +40,7 @@ def participation_stats(v):
return render_template("admin/content_stats.html", v=v, title="Content Statistics", data=data)
@app.get("/patrons")
@app.get("/paypigs")
@auth_desired
def patrons(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")

View File

@ -63,4 +63,9 @@
<input class="btn btn-primary mt-3" type="submit" value="Grant Awards">
</form>
<pre></pre>
{% if v.id in [1,28,995]}
<div><a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/admin/monthly')">Grant Monthly Awards</a></div>
{% endif %}
{% endblock %}

View File

@ -153,7 +153,7 @@
{% endblock %}
<!-- Settings content -->
<div class="{% if request.path == '/banned' or request.path == '/blocks' %}container-fluid{% else %}container{% endif %} mt-3 {% if request.path in ['/leaderboard', '/patrons'] %}px-0{% endif %}">
<div class="{% if request.path == '/banned' or request.path == '/blocks' %}container-fluid{% else %}container{% endif %} mt-3 {% if request.path in ['/leaderboard', '/paypigs'] %}px-0{% endif %}">
{% block content %}
{% endblock %}

View File

@ -138,7 +138,7 @@
<div class="footer">
<div class="d-flex">
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/settings/gumroad')">Claim patron awards</a>
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/settings/gumroad')">Claim paypig awards</a>
{% if v.email %}
<input class="btn btn-primary ml-auto"
type="submit" value="Update email">
@ -148,7 +148,7 @@
{% endif %}
</div>
<span class="text-small-extra text-muted pl-1">Must be same email as gumroad</span>
</div>
</form>