MarseyWorld/files/templates/voters.html

36 lines
967 B
HTML
Raw Normal View History

2021-11-15 00:22:03 +00:00
{% extends "default.html" %}
{% block content %}
<h3 class="mt-3" style="text-align: center">{{name2}}</h3>
<h5 class="font-weight-bold text-center mt-3">Total: {{total}}</h5>
<div class="mt-1 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>
2022-09-05 04:36:31 +00:00
<td><a href="{{request.path}}/{{user.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>
{% endblock %}