add a public list of poorcels

master
Aevann1 2022-06-27 04:21:34 +02:00
parent 42b0f37034
commit 6ff420e338
2 changed files with 32 additions and 0 deletions

View File

@ -256,6 +256,12 @@ def downvoting_comments(v, username, uid):
@app.get("/poorcels")
@auth_required
def poorcels(v):
users = g.db.query(User).filter_by(poorcel=True).all()
return render_template("poorcels.html", v=v, users=users)
@app.get("/grassed")

View File

@ -0,0 +1,26 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>Poorcels</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
</tr>
</thead>
<tbody id="followers-table">
{% 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>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}