forked from rDrama/rDrama
add loop.index to vote tables
parent
2fa71a252b
commit
dff5bcefcf
|
@ -18,6 +18,7 @@
|
||||||
<table class="table table-striped mb-5">
|
<table class="table table-striped mb-5">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th onclick="sort_table(1)">User Truescore</th>
|
<th onclick="sort_table(1)">User Truescore</th>
|
||||||
<th onclick="sort_table(2)">Vote Time</th>
|
<th onclick="sort_table(2)">Vote Time</th>
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
|
|
||||||
{% for vote in ups %}
|
{% for vote in ups %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{loop.index}}</td>
|
||||||
<td>
|
<td>
|
||||||
{% with user=vote.user %}
|
{% with user=vote.user %}
|
||||||
{% include "user_in_table.html" %}
|
{% include "user_in_table.html" %}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<table class="table table-striped mb-5">
|
<table class="table table-striped mb-5">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th onclick="sort_table(1)">User Truescore</th>
|
<th onclick="sort_table(1)">User Truescore</th>
|
||||||
<th onclick="sort_table(2)">Vote Time</th>
|
<th onclick="sort_table(2)">Vote Time</th>
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
|
|
||||||
{% for vote in ups %}
|
{% for vote in ups %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{loop.index}}</td>
|
||||||
<td>
|
<td>
|
||||||
{% with user=vote.user %}
|
{% with user=vote.user %}
|
||||||
{% include "user_in_table.html" %}
|
{% include "user_in_table.html" %}
|
||||||
|
@ -55,6 +57,7 @@
|
||||||
<table class="table table-striped mb-5">
|
<table class="table table-striped mb-5">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
<th onclick="sort_table(1)">User Truescore</th>
|
<th onclick="sort_table(1)">User Truescore</th>
|
||||||
<th onclick="sort_table(2)">Vote Time</th>
|
<th onclick="sort_table(2)">Vote Time</th>
|
||||||
|
@ -63,6 +66,7 @@
|
||||||
|
|
||||||
{% for vote in downs %}
|
{% for vote in downs %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{loop.index}}</td>
|
||||||
<td>
|
<td>
|
||||||
{% with user=vote.user %}
|
{% with user=vote.user %}
|
||||||
{% include "user_in_table.html" %}
|
{% include "user_in_table.html" %}
|
||||||
|
|
Loading…
Reference in New Issue