Tlapbot/tlapbot/templates/dashboard.html

64 lines
1.4 KiB
HTML
Raw Permalink 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 (username and users ) %}
2022-10-18 14:04:15 +02:00
<table>
<thead>
<tr>
<th>Points balance:</th>
2022-10-18 14:04:15 +02:00
</tr>
</thead>
{% for user in users %}
2022-10-18 14:04:15 +02:00
<tbody>
<td> {{ user[0] }} </td>
<td> {{ user[1] }} </td>
2022-10-18 14:04:15 +02:00
</tbody>
{% endfor %}
2022-10-18 14:04:15 +02:00
</table>
{% endif %}
{% 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>