mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 21:47:22 +00:00
b2af6d967a
Add currency report make reports use json storage Make tables nicer
57 lines
1.2 KiB
Django/Jinja
57 lines
1.2 KiB
Django/Jinja
{% extends 'base.html.j2' %}
|
|
|
|
{% block title %}
|
|
Items on {{ date }}
|
|
{% endblock title %}
|
|
|
|
{% block content_before %}
|
|
Items on {{ date }}
|
|
{% endblock content_before %}
|
|
|
|
{% block content %}
|
|
<div class='table-responsive'>
|
|
<table class="table table-dark table-striped table-bordered table-hover"
|
|
id="items_by_date"
|
|
data-order='[[ 1, "desc" ]]'>
|
|
<thead>
|
|
<th scope="col">
|
|
Item
|
|
</th>
|
|
<th scope="col">
|
|
Count
|
|
</th>
|
|
<th scope="col">
|
|
Rarity
|
|
</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for lot, count in data.items() %}
|
|
<tr>
|
|
<td>
|
|
{{ lot|get_lot_name }}
|
|
</td>
|
|
<td>
|
|
{{ count }}
|
|
</td>
|
|
<td>
|
|
{{ lot|get_lot_rarity }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{{ super () }}
|
|
<script>
|
|
$(document).ready(function(){
|
|
let items_by_date = $('#items_by_date').DataTable({
|
|
"processing": false,
|
|
"serverSide": false,
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|