2022-01-16 18:22:00 +00:00
|
|
|
{% 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"
|
2022-01-17 02:24:47 +00:00
|
|
|
id="items_by_date"
|
|
|
|
data-order='[[ 1, "desc" ]]'>
|
2022-01-16 18:22:00 +00:00
|
|
|
<thead>
|
|
|
|
<th scope="col">
|
|
|
|
Item
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
Count
|
|
|
|
</th>
|
2022-06-09 04:09:14 +00:00
|
|
|
<th scope="col">
|
|
|
|
Breakdown
|
|
|
|
</th>
|
2022-01-16 18:22:00 +00:00
|
|
|
<th scope="col">
|
|
|
|
Rarity
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-06-09 04:09:14 +00:00
|
|
|
{% for lot, details in data.items() %}
|
2022-01-16 18:22:00 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2022-01-17 02:24:47 +00:00
|
|
|
{{ lot|get_lot_name }}
|
2022-01-16 18:22:00 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2022-06-09 04:09:14 +00:00
|
|
|
{% if details.chars %}
|
|
|
|
{{ details.item_count }}
|
|
|
|
{% else %}
|
|
|
|
{{ details }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if details.chars %}
|
|
|
|
{% for char, value in details.chars|dictsort(false, 'value')|reverse %}
|
|
|
|
{{char}}: {{value}}<br/>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
Missing
|
|
|
|
{% endif %}
|
2022-01-16 18:22:00 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2022-01-17 02:24:47 +00:00
|
|
|
{{ lot|get_lot_rarity }}
|
2022-01-16 18:22:00 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-01-17 02:24:47 +00:00
|
|
|
{% block js %}
|
|
|
|
{{ super () }}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
let items_by_date = $('#items_by_date').DataTable({
|
|
|
|
"processing": false,
|
|
|
|
"serverSide": false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|