add loop.index to vote tables

master
Aevann1 2022-09-13 19:35:33 +02:00
parent 2fa71a252b
commit dff5bcefcf
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>User</th>
<th onclick="sort_table(1)">User Truescore</th>
<th onclick="sort_table(2)">Vote Time</th>
@ -26,6 +27,7 @@
{% for vote in ups %}
<tr>
<td>{{loop.index}}</td>
<td>
{% with user=vote.user %}
{% include "user_in_table.html" %}

View File

@ -30,6 +30,7 @@
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>User</th>
<th onclick="sort_table(1)">User Truescore</th>
<th onclick="sort_table(2)">Vote Time</th>
@ -38,6 +39,7 @@
{% for vote in ups %}
<tr>
<td>{{loop.index}}</td>
<td>
{% with user=vote.user %}
{% include "user_in_table.html" %}
@ -55,6 +57,7 @@
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>User</th>
<th onclick="sort_table(1)">User Truescore</th>
<th onclick="sort_table(2)">Vote Time</th>
@ -63,6 +66,7 @@
{% for vote in downs %}
<tr>
<td>{{loop.index}}</td>
<td>
{% with user=vote.user %}
{% include "user_in_table.html" %}