MarseyWorld/files/templates/following.html

33 lines
1.1 KiB
HTML
Raw Normal View History

2021-10-27 22:38:14 +00:00
{% extends "default.html" %}
{% block content %}
2021-12-24 23:00:09 +00:00
<script src="/static/assets/js/following.js?a=3"></script>
2021-12-14 22:48:37 +00:00
<pre>
</pre>
2021-10-27 22:38:14 +00:00
<h5>Users followed by @{{u.username}}</h5>
<pre></pre>
2021-12-14 22:48:37 +00:00
<table class="table table-striped mb-5">
2021-10-27 22:38:14 +00:00
<thead class="bg-primary text-white">
<tr>
<th style="font-weight: bold">#</th>
<th style="font-weight: bold">Name</th>
{% if v.id == u.id %}
<th style="font-weight: bold"></th>
{% endif %}
</tr>
</thead>
<tbody id="followers-table">
{% for user in users %}
<tr>
<td style="font-weight: bold">{{loop.index}}</td>
2021-12-27 05:07:19 +00:00
<td><a style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}"><img alt="@{{user.username}}'s profile picture" loading="lazy" src="/uid/{{user.id}}/pic" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}};"{% endif %}>{{user.username}}</span></a></td>
2021-10-27 22:38:14 +00:00
{% if v.id == u.id %}
2021-12-10 04:58:55 +00:00
<td><div class="btn btn-danger" onclick="removeFollowing(event, '{{user.username}}')">Unfollow</div></td>
2021-10-27 22:38:14 +00:00
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}