2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>{{'SITE_NAME' | app_config}}</title>
|
2021-12-27 05:07:19 +00:00
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
{% if thing %}
|
2021-12-14 22:48:37 +00:00
|
|
|
<pre>
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
<h1>Info</h1>
|
|
|
|
<p><a href="{{thing.permalink}}">{{thing.permalink}}</a></p>
|
|
|
|
<p><b>Author:</b> <a href="{{thing.author.url}}">@{{thing.author.username}}</a></p>
|
|
|
|
<p><b>Author Created At:</b> {{thing.author.created_utc}} ({{thing.author.created_datetime}})</p>
|
|
|
|
<p><b>Upvotes: </b>{{ups | length}}</p>
|
|
|
|
<p><b>Downvotes: </b>{{downs | length}}</p>
|
|
|
|
|
|
|
|
<h2>Upvotes</h2>
|
2022-01-03 10:32:31 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped mb-5 text-small-mobile">
|
2021-12-14 22:48:37 +00:00
|
|
|
<thead class="bg-primary text-white"><tr><th>User</th></tr></thead>
|
|
|
|
|
|
|
|
{% for vote in ups %}
|
2022-01-03 10:32:31 +00:00
|
|
|
<tr><td><a style="color:#{{vote.user.namecolor}};font-weight:bold" href="/@{{vote.user.username}}"><img alt="@{{vote.user.username}}'s profile picture" loading="lazy" src="/uid/{{vote.user.id}}/pic" class="pp20"><span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>{{vote.user.username}}</span></a></td></tr>
|
2021-12-14 22:48:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h2>Downvotes</h2>
|
2022-01-03 10:32:31 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped mb-5 text-small-mobile">
|
2021-12-14 22:48:37 +00:00
|
|
|
<thead class="bg-primary text-white"><tr><th>User</th></tr></thead>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
{% for vote in downs %}
|
2022-01-03 10:32:31 +00:00
|
|
|
<tr><td><a style="color:#{{vote.user.namecolor}}; font-weight:bold;" href="/@{{vote.user.username}}"><img alt="@{{vote.user.username}}'s profile picture" loading="lazy" src="/uid/{{vote.user.id}}/pic" class="pp20"><span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>{{vote.user.username}}</span></a></td></tr>
|
2021-12-14 22:48:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2021-07-30 11:05:20 +00:00
|
|
|
{% endblock %}
|