2.0.0-rc2: Achievements Refactored & Admin improved.

This commit is contained in:
2026-08-09 01:34:20 +08:00
parent 3874bf57a9
commit 63a0751aba
29 changed files with 2143 additions and 355 deletions
@@ -42,4 +42,22 @@
{% endfor %}
</div>
{% endif %}
{% if performance_medals %}
<div class="mt-4 border-t border-white/10 pt-4">
<div class="mb-2 text-[10px] font-black uppercase tracking-widest text-slate-400">Map & ELO Medals</div>
<div class="flex gap-2 overflow-x-auto">
{% for medal in performance_medals %}
<a href="{{ url_for('discover.index', dimension=medal.dimension_type) }}#medals"
class="whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold
{% if medal.medal_tier == 'gold' %}bg-amber-400/20 text-amber-200
{% elif medal.medal_tier == 'silver' %}bg-slate-300/20 text-slate-200
{% else %}bg-orange-500/20 text-orange-200{% endif %}">
{% if medal.medal_tier == 'gold' %}🥇{% elif medal.medal_tier == 'silver' %}🥈{% else %}🥉{% endif %}
{{ medal.dimension_label }}
</a>
{% endfor %}
</div>
</div>
{% endif %}
</section>