rDrama/files/templates/voters.html

35 lines
1.3 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>
2022-02-24 12:03:28 +00:00
<th>#</th>
<th>Name</th>
<th>{{name}}votes</th>
2021-12-14 22:48:37 +00:00
</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 %}>
2022-02-24 12:03:28 +00:00
<td>{{loop.index}}</td>
<td><a style="color:#{{user[0].namecolor}}" href="/@{{user[0].username}}"><img 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>
2022-03-22 00:01:21 +00:00
<td><a href="{{request.path}}/{{user[0].id}}/posts">{{user[1]}}</a></td>
2021-12-14 22:48:37 +00:00
</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)">
2022-02-24 12:03:28 +00:00
<td>{{pos[0]}}</td>
2022-02-23 05:19:57 +00:00
<td><a style="color:#{{v.namecolor}};font-weight:bold" href="/@{{v.username}}"><img 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-03-22 00:06:33 +00:00
<td><a href="{{request.path}}/{{v.id}}/posts">{{pos[1]}}</a></td>
2022-01-31 01:41:04 +00:00
</tr>
{% endif %}
2021-12-14 22:48:37 +00:00
</tbody>
</table>
2021-11-15 00:22:03 +00:00
{% endblock %}