update dashboard + dashboard helpers

also untested
This commit is contained in:
2022-10-12 15:48:57 +02:00
parent 5384076f64
commit 3c5a09b2de
3 changed files with 26 additions and 9 deletions
+13 -2
View File
@@ -5,12 +5,21 @@
<title>Redeems Dashboard</title>
</head>
<body>
{% if counters %}
<table>
<thead>
<tr>
<th>Counters</th>
</tr>
</thead>
<tbody>
<td> Number of drinks: </td>
<td> {{ number_of_drinks }} </td>
{% for counter in counters %}
<td> {{ counter[0] }} </td>
<td> {{ counter[1] }} </td>
</tbody>
</table>
{% endif %}
{% if queue %}
<table>
<thead>
@@ -18,6 +27,7 @@
<th>time</th>
<th>redeem</th>
<th>redeemer</th>
<th>note</th>
</tr>
</thead>
{% for row in queue %}
@@ -25,6 +35,7 @@
<td>{{ row[0].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
<td>{{ row[1] }}</td>
<td>{{ row[2] }}</td>
<td>{{ row[3] }}</td>
</tbody>
{% endfor %}
</table>