MarseyWorld/files/templates/voters.html

36 lines
967 B
HTML

{% 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">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>{{name}}votes</th>
</tr>
</thead>
<tbody id="followers-table">
{% for user, num in users %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td><a href="{{request.path}}/{{user.id}}/posts">{{num}}</a></td>
</tr>
{% endfor %}
{% if pos and (pos[0] > 25 or not pos[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos[0]}}</td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td><a href="{{request.path}}/{{v.id}}/posts">{{pos[1]}}</a></td>
</tr>
{% endif %}
</tbody>
</table>
{% endblock %}