2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block pagetitle %}Votes on {{thing.shortlink}}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block content %}
|
|
|
|
{% if thing %}
|
2022-10-29 00:38:39 +00:00
|
|
|
<h1 class="mt-2">Info</h1>
|
2022-05-04 23:09:46 +00:00
|
|
|
<p><a href="{{thing.permalink}}">{{thing.permalink}}</a></p>
|
2023-06-25 16:59:51 +00:00
|
|
|
<p><b>Author:</b> <a href="{{thing.author.url}}">@{{thing.author.username}}</a></p>
|
2022-07-03 07:41:25 +00:00
|
|
|
<p><b>Author Created At:</b> <span data-time="{{thing.author.created_utc}}"></span></p>
|
2022-11-07 07:03:58 +00:00
|
|
|
<p><b>Author Truescore:</b> {{"{:,}".format(thing.author.truescore)}}</p>
|
2022-05-04 23:09:46 +00:00
|
|
|
<p><b>Upvotes: </b>{{ups | length}}</p>
|
|
|
|
<p><b>Downvotes: </b>{{downs | length}}</p>
|
|
|
|
|
|
|
|
<h2>Upvotes</h2>
|
2022-06-27 02:47:49 +00:00
|
|
|
<div class="overflow-x-auto">
|
|
|
|
<table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
2022-09-13 17:35:33 +00:00
|
|
|
<th>#</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
<th>User</th>
|
2022-12-10 10:40:34 +00:00
|
|
|
<th>User Truescore</th>
|
|
|
|
<th>Vote Time</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-06-27 02:47:49 +00:00
|
|
|
{% for vote in ups %}
|
|
|
|
<tr>
|
2022-09-13 17:35:33 +00:00
|
|
|
<td>{{loop.index}}</td>
|
2022-06-27 02:50:13 +00:00
|
|
|
<td>
|
2022-09-05 03:01:06 +00:00
|
|
|
{% with user=vote.user %}
|
|
|
|
{% include "user_in_table.html" %}
|
|
|
|
{% endwith %}
|
2022-06-27 02:50:13 +00:00
|
|
|
</td>
|
2022-11-07 07:03:58 +00:00
|
|
|
<td>{{"{:,}".format(vote.user.truescore)}}</td>
|
2022-10-12 09:04:26 +00:00
|
|
|
<td {% if vote.created_utc > 1599343262 %}data-time="{{vote.created_utc}}"{% endif %}></td>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-06-27 02:47:49 +00:00
|
|
|
<h2>Downvotes</h2>
|
|
|
|
<div class="overflow-x-auto">
|
|
|
|
<table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
2022-09-13 17:35:33 +00:00
|
|
|
<th>#</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
<th>User</th>
|
2022-12-10 10:40:34 +00:00
|
|
|
<th>User Truescore</th>
|
|
|
|
<th>Vote Time</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-06-27 02:47:49 +00:00
|
|
|
{% for vote in downs %}
|
|
|
|
<tr>
|
2022-09-13 17:35:33 +00:00
|
|
|
<td>{{loop.index}}</td>
|
2022-06-27 02:50:13 +00:00
|
|
|
<td>
|
2022-09-05 03:01:06 +00:00
|
|
|
{% with user=vote.user %}
|
|
|
|
{% include "user_in_table.html" %}
|
|
|
|
{% endwith %}
|
2022-06-27 02:50:13 +00:00
|
|
|
</td>
|
2022-11-07 07:03:58 +00:00
|
|
|
<td>{{"{:,}".format(vote.user.truescore)}}</td>
|
2022-10-12 09:04:26 +00:00
|
|
|
<td {% if vote.created_utc > 1599343262 %}data-time="{{vote.created_utc}}"{% endif %}></td>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-12-10 10:40:34 +00:00
|
|
|
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2022-09-03 23:53:45 +00:00
|
|
|
{% endblock %}
|