Tlapbot/tlapbot/templates/dashboard.html

48 lines
1.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<head>
<title>Redeems Dashboard</title>
</head>
<body>
{% if counters %}
<table>
<thead>
<tr>
<th>Counters</th>
</tr>
</thead>
2022-10-13 13:53:42 +02:00
{% for counter in counters %}
<tbody>
<td> {{ counter[0] }} </td>
2022-10-13 13:53:42 +02:00
<td> {{ counter[1] }} </td>
</tbody>
2022-10-13 13:53:42 +02:00
{% endfor %}
</table>
{% endif %}
{% if queue %}
<table>
<thead>
<tr>
<th>time</th>
<th>redeem</th>
<th>redeemer</th>
<th>note</th>
</tr>
</thead>
{% for row in queue %}
<tbody>
<td>{{ row[0].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
<td>{{ row[1] }}</td>
<td>{{ row[3] }}</td>
2022-10-13 14:09:12 +02:00
{% if row[2] %}
<td>{{ row[2] }}</td>
{% endif %}
</tbody>
{% endfor %}
</table>
{% endif %}
</body>
</html>