forked from rDrama/rDrama
Identify benefactors in listing.
parent
4a3866bd7c
commit
e05b1197c6
|
@ -113,7 +113,7 @@ def patrons(v):
|
|||
|
||||
users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all()
|
||||
|
||||
return render_template("patrons.html", v=v, users=users)
|
||||
return render_template("patrons.html", v=v, users=users, benefactor_def=AWARDS['benefactor'])
|
||||
|
||||
@app.get("/admins")
|
||||
@app.get("/badmins")
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
<td>{% include "user_in_table.html" %}</td>
|
||||
<td>
|
||||
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="/i/{{SITE_NAME}}/patron_badges/2{{user.patron}}.webp?v=1">
|
||||
{% if user.patron_utc %}
|
||||
<i class="{{ benefactor_def['icon'] }} {{ benefactor_def['color'] }} px-1"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue