MarseyWorld/files/templates/voters.html

35 lines
1.4 KiB
HTML
Raw Normal View History

2021-11-15 00:22:03 +00:00
{% extends "default.html" %}
{% block content %}
2021-12-14 22:48:37 +00:00
<pre>
</pre>
<h5 style="text-align: center">{{name2}}</h5>
<pre></pre>
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-12-14 22:48:37 +00:00
<thead class="bg-primary text-white">
<tr>
<th style="font-weight: bold">#</th>
<th style="font-weight: bold">Name</th>
<th style="font-weight: bold">{{name}}votes</th>
</tr>
</thead>
<tbody id="followers-table">
{% for user in users %}
2022-01-31 01:41:04 +00:00
<tr {% if v.id == user[0].id %}class="self"{% endif %}>
2021-12-14 22:48:37 +00:00
<td style="font-weight: bold">{{loop.index}}</td>
2022-02-23 05:02:07 +00:00
<td><a style="color:#{{user[0].namecolor}}; font-weight:bold;" href="/@{{user[0].username}}"><img alt="" loading="lazy" src="{{user[0].profile_url}}" class="pp20"><span {% if user[0].patron %}class="patron" style="background-color:#{{user[0].namecolor}}"{% endif %}>{{user[0].username}}</span></a></td>
2021-12-14 22:48:37 +00:00
<td style="font-weight: bold">{{user[1]}}</td>
</tr>
{% endfor %}
2022-01-31 01:41:04 +00:00
{% if pos and (pos[0] > 25 or not pos[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td style="font-weight:bold">{{pos[0]}}</td>
2022-02-23 05:02:07 +00:00
<td><a style="color:#{{v.namecolor}};font-weight:bold" href="/@{{v.username}}"><img alt="" loading="lazy" src="{{v.profile_url}}" class="pp20"><span {% if v.patron %}class="patron" style="background-color:#{{v.namecolor}}"{% endif %}>{{v.username}}</span></a></td>
2022-01-31 01:41:04 +00:00
<td style="font-weight:bold">{{pos[1]}}</td>
</tr>
{% endif %}
2021-12-14 22:48:37 +00:00
</tbody>
</table>
2021-11-15 00:22:03 +00:00
{% endblock %}