2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
2023-10-29 12:05:47 +00:00
|
|
|
{% block pagetitle %}Votes on {{obj.shortlink}}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block content %}
|
2023-10-29 12:05:47 +00:00
|
|
|
{% if obj %}
|
|
|
|
<h1 class="mt-2">Info</h1>
|
|
|
|
<p><a href="{{obj.permalink}}">{{obj.permalink}}</a></p>
|
|
|
|
<p><b>Author:</b> <a href="{{obj.author.url}}">@{{obj.author.username}}</a></p>
|
|
|
|
<p><b>Author Created At:</b> <span data-time="{{obj.author.created_utc}}"></span></p>
|
|
|
|
<p><b>Author Truescore:</b> {{"{:,}".format(obj.author.truescore)}}</p>
|
|
|
|
<p><b>Upvotes: </b>{{ups | length}}</p>
|
|
|
|
<p><b>Downvotes: </b>{{downs | length}}</p>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2023-10-29 12:05:47 +00:00
|
|
|
<h2>Upvotes</h2>
|
|
|
|
<div class="overflow-x-auto">
|
2024-02-12 14:18:13 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
2023-10-29 12:05:47 +00:00
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>User</th>
|
|
|
|
<th>User Truescore</th>
|
|
|
|
<th>Vote Time</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2023-10-29 12:05:47 +00:00
|
|
|
{% for vote in ups %}
|
|
|
|
<tr>
|
|
|
|
<td>{{loop.index}}</td>
|
|
|
|
<td>
|
|
|
|
{% with user=vote.user %}
|
|
|
|
{% include "user_in_table.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
</td>
|
|
|
|
<td>{{"{:,}".format(vote.user.truescore)}}</td>
|
|
|
|
<td {% if vote.created_utc > 1599343262 %}data-time="{{vote.created_utc}}"{% endif %}></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2023-10-29 12:05:47 +00:00
|
|
|
<h2>Downvotes</h2>
|
|
|
|
<div class="overflow-x-auto">
|
2024-02-12 14:18:13 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
2023-10-29 12:05:47 +00:00
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>User</th>
|
|
|
|
<th>User Truescore</th>
|
|
|
|
<th>Vote Time</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2023-10-29 12:05:47 +00:00
|
|
|
{% for vote in downs %}
|
|
|
|
<tr>
|
|
|
|
<td>{{loop.index}}</td>
|
|
|
|
<td>
|
|
|
|
{% with user=vote.user %}
|
|
|
|
{% include "user_in_table.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
</td>
|
|
|
|
<td>{{"{:,}".format(vote.user.truescore)}}</td>
|
|
|
|
<td {% if vote.created_utc > 1599343262 %}data-time="{{vote.created_utc}}"{% endif %}></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-09-03 23:53:45 +00:00
|
|
|
{% endblock %}
|