add list of current redeems to dashboard

is currently ugly, needs to be made prettier
This commit is contained in:
Lili (Tlapka) 2022-11-07 17:30:00 +01:00
parent 7b9dbc805c
commit 72800a6311
2 changed files with 71 additions and 0 deletions

View File

@ -38,6 +38,51 @@ th:last-child {
padding-right: 0 padding-right: 0
} }
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 300;
letter-spacing:-.1rem;
margin-bottom:2.0rem;
margin-top:1.5rem
}
h1 {
font-size:4.6rem;
line-height:1.2
}
h2 {
font-size:3.6rem;
line-height:1.25
}
h3 {
font-size:2.8rem;
line-height:1.3
}
h4 {
font-size:2.2rem;
letter-spacing:-.08rem;
line-height:1.35
}
h5 {
font-size:1.8rem;
letter-spacing:-.05rem;
line-height:1.5
}
h6 {
font-size:1.6rem;
letter-spacing:0;
line-height:1.4
}
/* General style */ /* General style */
h1{font-size: 3.6rem; line-height: 1.25} h1{font-size: 3.6rem; line-height: 1.25}
h2{font-size: 2.8rem; line-height: 1.3} h2{font-size: 2.8rem; line-height: 1.3}

View File

@ -5,6 +5,7 @@
<title>Redeems Dashboard</title> <title>Redeems Dashboard</title>
</head> </head>
<body> <body>
<h3>Redeems Dashboard</h3>
{% if (username and users ) %} {% if (username and users ) %}
<table> <table>
<thead> <thead>
@ -60,4 +61,29 @@
</table> </table>
{% endif %} {% endif %}
</body> </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> </html>