Commit 0c66b13d authored by erreur401's avatar erreur401

Merge branch 'master' of gitlab.com:bemaker/eu.bemaker.flask

parents 77fbe045 3649a08e
......@@ -22,28 +22,24 @@
{{ current_user.badges.laser.lvl }}
<div class="badgesList">
<h2>TES BADGES</h2>
<div class="row">
{% for badge in current_user.badges %}
{% for badge, value in current_user.badges.items() %}
<div class="col-2">
<div class="badgeItem">
{% if badge.lvl == 1 %}
{% if value.lvl == "1" %}
<div class="badgeImg {{badge}} active">
{% elif badge.lvl == 2 %}
{% elif value.lvl == "2" %}
<div class="badgeImg {{badge}} fail">
{% else %}
<div class="badgeImg {{badge}}">
<p>{{ badge.lvl}}</p>
{% endif %}
</div>
<span>{{ badge}}</span>
<p>{{ badge.lvl}}</p>
{#<p>{{ value.lvl }}</p>#}
</div>
</div>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment