add customized prefix to dashboard

This commit is contained in:
Lili (Tlapka) 2023-01-04 12:37:56 +01:00
parent 3caaed4b35
commit 92a2a77c80
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ def dashboard():
queue=pretty_redeem_queue(db), queue=pretty_redeem_queue(db),
counters=all_counters(db), counters=all_counters(db),
redeems=current_app.config['REDEEMS'], redeems=current_app.config['REDEEMS'],
prefix=current_app.config['PREFIX'],
username=username, username=username,
users=users, users=users,
utc_timezone=utc_timezone) utc_timezone=utc_timezone)

View File

@ -97,7 +97,7 @@
</thead> </thead>
{% for redeem, redeem_info in redeems.items() %} {% for redeem, redeem_info in redeems.items() %}
<tbody> <tbody>
<td>!{{ redeem }}</td> <td>{{ prefix }}{{ redeem }}</td>
<td>{{ redeem_info["price"] }}</td> <td>{{ redeem_info["price"] }}</td>
<td>{{ redeem_info["type"] }}</td> <td>{{ redeem_info["type"] }}</td>
{% if redeem_info["info"] %} {% if redeem_info["info"] %}