MarseyWorld/files/templates/votes.html

73 lines
1.7 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
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 %}
<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>
<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>
<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-12-10 10:40:34 +00:00
2022-05-04 23:09:46 +00:00
{% endif %}
2022-09-03 23:53:45 +00:00
{% endblock %}