2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
{% block content %}
|
2021-12-13 12:56:26 +00:00
|
|
|
<div class="col-span-full">
|
2021-10-27 22:38:14 +00:00
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
2021-10-15 14:08:27 +00:00
|
|
|
<h5>@{{u.username}}'s followers</h5>
|
|
|
|
<pre></pre>
|
2021-12-13 12:56:26 +00:00
|
|
|
<table class="w-full table table-striped mb-5">
|
2021-10-15 14:08:27 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th style="font-weight: bold">#</th>
|
|
|
|
<th style="font-weight: bold">Name</th>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<th style="font-weight: bold"></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="followers-table">
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td style="font-weight: bold">{{loop.index}}</td>
|
2021-11-04 21:14:38 +00:00
|
|
|
<td><a style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}"><img loading="lazy" src="/uid/{{user.id}}/pic" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}};"{% endif %}>{{user.username}}</span></a></td>
|
2021-10-15 14:08:27 +00:00
|
|
|
{% if v.id == u.id %}
|
2021-12-13 13:01:41 +00:00
|
|
|
<td><div class="btn btn-red" onclick="removeFollower(event, '{{user.username}}')">Remove follow</div></td>
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-12-13 12:56:26 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-13 12:56:26 +00:00
|
|
|
{% block scripts %}
|
|
|
|
<script src="/assets/js/followers.js?v=200"></script>
|
2021-07-21 01:12:26 +00:00
|
|
|
{% endblock %}
|