2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block pagetitle %}@{{u.username}}'s followers{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block content %}
|
2022-11-27 00:59:16 +00:00
|
|
|
<h5 class="my-3">@{{u.username}}'s followers</h5>
|
2022-10-29 00:38:39 +00:00
|
|
|
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
|
2022-05-04 23:09:46 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2022-10-27 15:37:40 +00:00
|
|
|
<td>Following since</td>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if v.id == u.id %}
|
|
|
|
<th></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="followers-table">
|
2022-09-05 21:52:56 +00:00
|
|
|
{% for follow, user in users %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<tr>
|
2022-09-05 03:01:06 +00:00
|
|
|
<td>{% include "user_in_table.html" %}</td>
|
2022-09-05 22:02:08 +00:00
|
|
|
<td {% if follow.created_utc > 1599343262 %}data-time="{{follow.created_utc}}"{% endif %}></td>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if v.id == u.id %}
|
2022-12-30 12:14:18 +00:00
|
|
|
<td><div class="btn btn-danger" data-areyousure="removeFollower(this, '{{user.username}}')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)">Remove follow</div></td>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2022-09-24 07:04:06 +00:00
|
|
|
<script defer src="{{'js/followers.js' | asset}}"></script>
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-09-24 07:04:06 +00:00
|
|
|
{% endblock %}
|
2022-11-27 00:59:16 +00:00
|
|
|
|
|
|
|
{% block pagenav %}
|
2022-12-25 02:10:56 +00:00
|
|
|
<nav>
|
2022-11-27 00:59:16 +00:00
|
|
|
<ul class="pagination pagination-sm py-3 pl-3 mb-0">
|
|
|
|
{% if page>1 %}
|
|
|
|
<li class="page-item">
|
|
|
|
<small><a class="page-link" href="?page={{page-1}}" tabindex="-1">Prev</a></small>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Prev</span></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if next_exists %}
|
|
|
|
<li class="page-item">
|
|
|
|
<small><a class="page-link" href="?page={{page+1}}">Next</a></small>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endblock %}
|