2022-09-07 16:44:59 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-09-08 13:17:58 +02:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
2022-09-07 16:44:59 +02:00
|
|
|
<head>
|
|
|
|
<title>Redeems Dashboard</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-11-07 17:30:00 +01:00
|
|
|
<h3>Redeems Dashboard</h3>
|
2022-10-20 16:10:28 +02:00
|
|
|
{% if (username and users ) %}
|
2022-10-18 14:04:15 +02:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-10-20 16:10:28 +02:00
|
|
|
<th>Points balance:</th>
|
2022-10-18 14:04:15 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-10-20 16:10:28 +02:00
|
|
|
{% for user in users %}
|
2022-10-18 14:04:15 +02:00
|
|
|
<tbody>
|
2022-10-20 16:10:28 +02:00
|
|
|
<td> {{ user[0] }} </td>
|
|
|
|
<td> {{ user[1] }} </td>
|
2022-10-18 14:04:15 +02:00
|
|
|
</tbody>
|
2022-10-20 16:10:28 +02:00
|
|
|
{% endfor %}
|
2022-10-18 14:04:15 +02:00
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-10-12 15:48:57 +02:00
|
|
|
{% if counters %}
|
2022-09-07 16:44:59 +02:00
|
|
|
<table>
|
2022-10-12 15:48:57 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Counters</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-10-13 13:53:42 +02:00
|
|
|
{% for counter in counters %}
|
2022-09-07 16:44:59 +02:00
|
|
|
<tbody>
|
2022-10-12 15:48:57 +02:00
|
|
|
<td> {{ counter[0] }} </td>
|
2022-10-13 13:53:42 +02:00
|
|
|
<td> {{ counter[1] }} </td>
|
2022-09-07 16:44:59 +02:00
|
|
|
</tbody>
|
2022-10-13 13:53:42 +02:00
|
|
|
{% endfor %}
|
2022-09-07 16:44:59 +02:00
|
|
|
</table>
|
2022-10-12 15:48:57 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2022-09-14 14:04:27 +02:00
|
|
|
{% if queue %}
|
2022-09-07 16:44:59 +02:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>time</th>
|
|
|
|
<th>redeem</th>
|
|
|
|
<th>redeemer</th>
|
2022-10-12 15:48:57 +02:00
|
|
|
<th>note</th>
|
2022-09-07 16:44:59 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for row in queue %}
|
|
|
|
<tbody>
|
2022-09-27 18:23:10 +02:00
|
|
|
<td>{{ row[0].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
|
2022-09-07 16:44:59 +02:00
|
|
|
<td>{{ row[1] }}</td>
|
2022-10-12 15:48:57 +02:00
|
|
|
<td>{{ row[3] }}</td>
|
2022-10-13 14:09:12 +02:00
|
|
|
{% if row[2] %}
|
|
|
|
<td>{{ row[2] }}</td>
|
|
|
|
{% endif %}
|
2022-09-07 16:44:59 +02:00
|
|
|
</tbody>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2022-09-14 14:04:27 +02:00
|
|
|
{% endif %}
|
2022-09-07 16:44:59 +02:00
|
|
|
</body>
|
2022-11-07 17:30:00 +01:00
|
|
|
<h3>Currently Active Redeems</h3>
|
|
|
|
<body>
|
|
|
|
{% if redeems %}
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>redeem</th>
|
|
|
|
<th>price</th>
|
|
|
|
<th>type</th>
|
|
|
|
<th>description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for redeem, redeem_info in redeems.items() %}
|
|
|
|
<tbody>
|
|
|
|
<td>{{ redeem }}</td>
|
|
|
|
<td>{{ redeem_info["price"] }}</td>
|
|
|
|
<td>{{ redeem_info["type"] }}</td>
|
|
|
|
{% if redeem_info["info"] %}
|
|
|
|
<td>{{ redeem_info["info"] }}</td>
|
|
|
|
{% endif %}
|
|
|
|
</tbody>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
</body>
|
2022-09-27 18:23:10 +02:00
|
|
|
</html>
|