forked from MarseyWorld/MarseyWorld
add a public list of poorcels
parent
42b0f37034
commit
6ff420e338
|
@ -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")
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue