MarseyWorld/files/templates/poll_votes.html

34 lines
914 B
HTML
Raw Normal View History

{% extends "default.html" %}
2022-11-19 22:20:38 +00:00
{% block pagetitle %}Poll Votes{% endblock %}
{% block content %}
{% if thing %}
2022-11-05 21:51:09 +00:00
<h3 class="mt-5">{{thing.body_html | safe}} - {{ups | length}} {% if thing.exclusive == 2 %}bets{% else %}votes{% endif %}</h3>
<div class="overflow-x-auto mt-5">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
2022-09-13 17:35:33 +00:00
<th>#</th>
<th>User</th>
<th onclick="sort_table(2)">User Truescore</th>
<th onclick="sort_table(3)">Vote Time</th>
</tr>
</thead>
{% for vote in ups %}
<tr>
2022-09-13 17:35:33 +00:00
<td>{{loop.index}}</td>
<td>
2022-09-05 03:01:06 +00:00
{% with user=vote.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-11-07 07:03:58 +00:00
<td>{{"{:,}".format(vote.user.truescore)}}</td>
2022-07-03 07:41:25 +00:00
<td data-time="{{vote.created_utc}}"></td>
</tr>
{% endfor %}
</table>
</div>
<script defer src="{{'js/sort_table.js' | asset}}"></script>
{% endif %}
{% endblock %}