2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
{% block content %}
|
2022-10-29 00:38:39 +00:00
|
|
|
<h5 class="mt-3 mb-1">Users followed by @{{u.username}}</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Name</th>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<th></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="followers-table">
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{{loop.index}}</td>
|
2022-09-05 03:01:06 +00:00
|
|
|
<td>{% include "user_in_table.html" %}</td>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if v.id == u.id %}
|
2022-10-10 04:56:39 +00:00
|
|
|
<td><div class="btn btn-danger" onclick="removeFollowing(this, '{{user.username}}')">Unfollow</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/following.js' | asset}}"></script>
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-10-10 04:56:39 +00:00
|
|
|
{% endblock %}
|