forked from MarseyWorld/MarseyWorld
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
{% extends "default.html" %}
|
|
{% block pagetitle %}{{name2}}{% endblock %}
|
|
{% block content %}
|
|
<h3 class="my-3" style="text-align: center">{{name2}}</h3>
|
|
<h5 class="font-weight-bold text-center mt-3">Total: {{total_items}}</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+PAGE_SIZE*(page-1)}}</td>
|
|
<td>{% include "user_in_table.html" %}</td>
|
|
<td><a href="{{request.path}}/@{{user.username}}/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.username}}/posts">{{pos[1]}}</a></td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block pagenav %}
|
|
{% include "pagination.html" %}
|
|
{% endblock %}
|