forked from MarseyWorld/MarseyWorld
30 lines
711 B
HTML
30 lines
711 B
HTML
{% extends "default.html" %}
|
|
{% block content %}
|
|
<h5 class="mt-3 mb-1">Users followed by @{{u.username}}</h5>
|
|
<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>
|
|
<td>{% include "user_in_table.html" %}</td>
|
|
{% if v.id == u.id %}
|
|
<td><div class="btn btn-danger" onclick="removeFollowing(this, '{{user.username}}')">Unfollow</div></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<script defer src="{{'js/following.js' | asset}}"></script>
|
|
|
|
{% endblock %}
|