remotes/1693045480750635534/spooky-22
Aevann1 2021-11-23 02:25:47 +02:00
parent 2b3ceea310
commit cee16fc1c9
3 changed files with 20 additions and 3 deletions

View File

@ -259,7 +259,7 @@ def shadowbanned(v):
def agendaposters(v):
if not (v and v.admin_level > 1): abort(404)
users = [x for x in g.db.query(User).filter_by(agendaposter = True).all()]
return render_template("banned.html", v=v, users=users)
return render_template("agendaposters.html", v=v, users=users)
@app.get("/admin/image_posts")

View File

@ -331,7 +331,6 @@ def blocks(v):
@auth_desired
def banned(v):
users = [x for x in g.db.query(User).filter(User.is_banned > 0, User.unban_utc == 0).all()]
return render_template("banned.html", v=v, users=users)
@ -339,7 +338,6 @@ def banned(v):
@auth_desired
def formatting(v):
return render_template("formatting.html", v=v)
@app.get("/service-worker.js")

View File

@ -0,0 +1,19 @@
{% extends "settings2.html" %}
{% block content %}
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th style="font-weight:bold;">#</th>
<th style="font-weight:bold;">Name</th>
</tr>
</thead>
{% for user in users %}
<tr>
<td style="font-weight:bold;">{{users.index(user)+1}}</td>
<td><a style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}"><img loading="lazy" src="/uid/{{user.id}}/pic" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}};"{% endif %}>{{user.username}}</span></a></td>
</tr>
{% endfor %}
</table>
{% endblock %}