make it possible to sort downvotes too

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-27 04:50:13 +02:00
parent 26d46a9cb9
commit 234cbe47ee
1 changed files with 17 additions and 3 deletions

View File

@ -34,7 +34,14 @@
{% for vote in ups %}
<tr>
<td><a style="color:#{{vote.user.namecolor}};font-weight:bold" href="/@{{vote.user.username}}"><img loading="lazy" src="{{vote.user.profile_url}}" class="pp20"><span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>{{vote.user.username}}</span></a></td>
<td>
<a style="color:#{{vote.user.namecolor}};font-weight:bold" href="/@{{vote.user.username}}">
<img loading="lazy" src="{{vote.user.profile_url}}" class="pp20">
<span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>
{{vote.user.username}}
</span>
</a>
</td>
<td>{{vote.user.truecoins}}</td>
</tr>
{% endfor %}
@ -47,13 +54,20 @@
<thead class="bg-primary text-white">
<tr>
<th>User</th>
<th>User truescore</th>
<th role="button" onclick="sort_table(1)">User truescore</th>
</tr>
</thead>
{% for vote in downs %}
<tr>
<td><a style="color:#{{vote.user.namecolor}};font-weight:bold" href="/@{{vote.user.username}}"><img loading="lazy" src="{{vote.user.profile_url}}" class="pp20"><span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>{{vote.user.username}}</span></a></td>
<td>
<a style="color:#{{vote.user.namecolor}};font-weight:bold" href="/@{{vote.user.username}}">
<img loading="lazy" src="{{vote.user.profile_url}}" class="pp20">
<span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.namecolor}}"{% endif %}>
{{vote.user.username}}
</span>
</a>
</td>
<td>{{vote.user.truecoins}}</td>
</tr>
{% endfor %}