add list of current redeems to dashboard

is currently ugly, needs to be made prettier
This commit is contained in:
2022-11-07 17:30:00 +01:00
parent 7b9dbc805c
commit 72800a6311
2 changed files with 71 additions and 0 deletions
+26
View File
@@ -5,6 +5,7 @@
<title>Redeems Dashboard</title>
</head>
<body>
<h3>Redeems Dashboard</h3>
{% if (username and users ) %}
<table>
<thead>
@@ -60,4 +61,29 @@
</table>
{% endif %}
</body>
<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>
</html>