master
kek7198 2021-12-15 21:56:55 -06:00
parent 17562d90ac
commit 4a7a4e7823
1 changed files with 17 additions and 18 deletions

View File

@ -1,21 +1,20 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block content %} {% block content %}
<pre></pre> <div class="col-span-full my-4 px-2.5 md:px-0">
<h5>Users who viewed your profile</h5> <h5>Users who viewed your profile</h5>
<pre></pre> <table class="w-full table table-striped mb-5">
<table class="table table-striped mb-5"> <thead class="bg-primary text-white">
<thead class="bg-primary text-white"> <tr>
<tr> <th style="font-weight: bold">Name</th>
<th style="font-weight: bold">Name</th> <th style="font-weight: bold">Last visit</th>
<th style="font-weight: bold">Last visit</th> </tr>
</tr> </thead>
</thead> {% for view in viewers %}
{% for view in viewers %} <tr>
<tr> <td style="font-weight: bold"><a style="color: #{{view.viewer.namecolor}}" href="/@{{view.viewer.username}}"><img loading="lazy" src="/uid/{{view.viewer.id}}/pic" class="pp20"><span {% if view.viewer.patron %}class="patron" style="background-color:#{{view.viewer.namecolor}};"{% endif %}>{{view.viewer.username}}</span></a></td>
<td style="font-weight: bold"><a style="color: #{{view.viewer.namecolor}}" href="/@{{view.viewer.username}}"><img loading="lazy" src="/uid/{{view.viewer.id}}/pic" class="pp20"><span {% if view.viewer.patron %}class="patron" style="background-color:#{{view.viewer.namecolor}};"{% endif %}>{{view.viewer.username}}</span></a></td> <td style="font-weight: bold">{{view.last_view_string}}</td>
<td style="font-weight: bold">{{view.last_view_string}}</td> </tr>
</tr> {% endfor %}
{% endfor %} </table>
</table> </div>
{% endblock %} {% endblock %}