forked from rDrama/rDrama
make sorting tables less retarded
parent
44c588fce3
commit
26d46a9cb9
|
@ -4,13 +4,13 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
<script src="/assets/js/sort_table.js?v=243"></script>
|
||||
|
||||
<pre class="d-none d-md-inline-block"></pre>
|
||||
<h5 style="font-weight:bold;">Admins</h5>
|
||||
<pre></pre>
|
||||
<div class="overflow-x-auto">
|
||||
<table id="sortable_table" class="table table-striped mb-5">
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
|
@ -19,6 +19,7 @@
|
|||
<th role="button" onclick="sort_table(3)" style="text-align:right;">Mod actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for user in admins %}
|
||||
<tr>
|
||||
<td>{{loop.index}}</td>
|
||||
|
@ -28,4 +29,5 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
<script src="/assets/js/sort_table.js?v=243"></script>
|
||||
<pre>
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
</pre>
|
||||
<div class="overflow-x-auto">
|
||||
<table id="sortable_table" class="table table-striped mb-5">
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
|
@ -23,6 +23,7 @@
|
|||
<th role="button" onclick="sort_table(4)">Rarity</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for badge in badges %}
|
||||
<tr>
|
||||
<td>{{loop.index}}</td>
|
||||
|
@ -35,5 +36,5 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
<script src="/assets/js/sort_table.js?v=243"></script>
|
||||
|
||||
<pre>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
|||
<h5>List of {{HOLE_NAME}}s</h5>
|
||||
<pre></pre>
|
||||
<div class="overflow-x-auto">
|
||||
<table id="sortable_table" class="table table-striped mb-5">
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
|
@ -19,6 +19,7 @@
|
|||
<th role="button" onclick="sort_table(4)">Blockers</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for sub, count in subs %}
|
||||
<tr>
|
||||
<td>{{loop.index}}</td>
|
||||
|
@ -29,5 +30,5 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
{% if thing %}
|
||||
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
<script src="/assets/js/sort_table.js?v=243"></script>
|
||||
|
||||
<pre>
|
||||
|
||||
|
@ -23,11 +23,14 @@
|
|||
<p><b>Downvotes: </b>{{downs | length}}</p>
|
||||
|
||||
<h2>Upvotes</h2>
|
||||
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white"><tr>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th role="button" onclick="sort_table(1)">User truescore</th>
|
||||
</tr></thead>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for vote in ups %}
|
||||
<tr>
|
||||
|
@ -36,13 +39,17 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Downvotes</h2>
|
||||
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white"><tr>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>User truescore</th>
|
||||
</tr></thead>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for vote in downs %}
|
||||
<tr>
|
||||
|
@ -51,9 +58,7 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue