forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-05-25 23:25:23 +02:00
parent 878119d7a2
commit 8d1c9d710d
2 changed files with 22 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def loggedin_list(v):
ids = cache.get(f'{SITE}_loggedin').keys()
users = g.db.query(User).filter(User.id.in_(ids)) \
.order_by(User.admin_level.desc(), User.truecoins.desc()).all()
return render_template("agendaposters.html", v=v, users=users)
return render_template("loggedin.html", v=v, users=users)
@app.get('/admin/merge/<id1>/<id2>')

View File

@ -0,0 +1,21 @@
{% extends "settings2.html" %}
{% block content %}
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Truescore</th>
</tr>
</thead>
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.namecolor}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}}"{% endif %}>{{user.username}}</span></a></td>
<td>{{user.truecoins}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}