make it possible to sort downvotes too
parent
26d46a9cb9
commit
234cbe47ee
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue