MarseyWorld/files/templates/followers.html

32 lines
843 B
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
{% block content %}
<h5 class="mt-2">@{{u.username}}'s followers</h5>
<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>#</th>
<th>Name</th>
<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>
<td>{{loop.index}}</td>
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-10-20 22:14:19 +00:00
<td><div class="btn btn-danger" onclick="removeFollower(this, '{{user.username}}')">Remove follow</div></td>
2022-05-04 23:09:46 +00:00
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<script defer src="{{'js/followers.js' | asset}}"></script>
{% endblock %}