feat: add persistent badges and admin badge page

This commit is contained in:
hnzio committed 2026-04-13 10:19:38 +02:00
1 parent 3c99c3683e
commit c36abe82a8
27 files changed
+576 -100

No files matched your search

+9 -2
View File
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% from "partials/macros.html" import avatar %}
{% from "partials/macros.html" import avatar, badge_chip %}
{% block title %}Highscoreboard · Putzliga{% endblock %}
{% block page_title %}Highscoreboard{% endblock %}
{% block content %}
@@ -50,7 +50,14 @@
{% if row.badges %}
<div class="badge-cloud">
{% for badge in row.badges %}
<span class="reward-chip">{{ badge.definition.name }} +{{ badge.bonus_points }}</span>
{{ badge_chip(badge) }}
{% endfor %}
</div>
{% endif %}
{% if row.user.awarded_badges %}
<div class="badge-cloud">
{% for badge in row.user.awarded_badges[:3] %}
{{ badge_chip(badge) }}
{% endfor %}
</div>
{% endif %}