forked from rDrama/rDrama
1
0
Fork 0

add option to sort hats by time added

master
Aevann1 2022-09-18 19:18:44 +02:00
parent dbfac00555
commit fa73bb785f
1 changed files with 6 additions and 1 deletions

View File

@ -86,11 +86,14 @@
{% endif %}
<th scope="col" onclick="sort_table(4)">Owners</th>
<th scope="col" onclick="sort_table(5)">Price</th>
<th scope="col">Actions</th>
<th scope="col" onclick="sort_table(7)">Added on</th>
{% else %}
<th scope="col" onclick="sort_table(3)">Owners</th>
<th scope="col" onclick="sort_table(4)">Price</th>
<th scope="col">Actions</th>
<th scope="col" onclick="sort_table(6)">Added on</th>
{% endif %}
<th scope="col">Actions</th>
</tr>
</thead>
@ -131,6 +134,8 @@
<a id="equip-{{hat.id}}" class="equip {% if hat.id in v.equipped_hat_ids %}d-none{% endif %} btn btn-success" role="button" onclick="equip_hat(this, '{{hat.id}}', '{{hat.name}}')"><span class="m-auto">Equip</span></a>
</div>
</td>
<td data-time="{{hat.created_utc}}"></td>
</tr>
{% endfor %}
</tbody>