MarseyWorld/files/templates/voters.html

40 lines
979 B
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>
<h3 style="text-align: center">{{name2}}</h3>
<h5 class="font-weight-bold text-center mt-3">Total: {{total}}</h5>
2021-12-14 22:48:37 +00:00
<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">
2022-09-05 03:01:06 +00:00
{% for user, num in users %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
2022-02-24 12:03:28 +00:00
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
<td><a href="{{request.path}}/{{user[0].id}}/posts">{{num}}</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-09-05 03:01:06 +00:00
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</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 %}