MarseyWorld/files/templates/followers.html

32 lines
873 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 %}
<td><div class="btn btn-danger" data-click="removeFollower(this, '{{user.username}}')" onclick="areyousure(this)">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 %}