{% extends "layout/basic.html" %} {% block content %}

{{ _('My Stats') }}

{{ _('Level') }}{{ level }}
{{ _('Level {0}').format(level) }} · {{ xp }} XP {{ _('{0} XP to next level').format(xpToNext) }}
🗓️ {{ _('This week') }}: {{ _('{0} submissions').format(weekSummary.subs) }} · {{ _('{0} solved').format(weekSummary.solved) }} · {{ _('{0}-day streak').format(streak) }} {% if weeklyChallenge %} · {{ _('weekly challenge') }} {{ weeklyChallenge.progress }}/{{ weeklyChallenge.target }}{% endif %}
{% if dailyProblem %}
🎯 {{ _('Challenge of the day') }}: {{ dailyProblem.pid }} — {{ dailyProblem.title }}
{% endif %} {% if weeklyChallenge %}
📅 {{ _('Challenge of the week') }}: {{ _('solve {0} problems tagged «{1}»').format(weeklyChallenge.target, weeklyChallenge.category) }} — {{ weeklyChallenge.progress }}/{{ weeklyChallenge.target }} {% if weeklyChallenge.done %} ✅ {{ _('Completed!') }}{% endif %}
{% endif %}
{% set cards = [ [_('Solved problems'), solvedCount, 'var(--uca-primary)'], [_('Current streak'), streak ~ ' ' ~ _('days'), 'var(--uca-secondary)'], [_('Best streak'), maxStreak ~ ' ' ~ _('days'), 'var(--uca-gray)'], [_('Total submissions'), total, 'var(--uca-primary)'], [_('Acceptance'), acceptedPct ~ '%', 'var(--uca-ok)'], [_('Badges'), badgeCount ~ '/' ~ badges.length, 'var(--uca-secondary)'] ] %} {%- for c in cards -%}
{{ c[1] }}
{{ c[0] }}
{%- endfor -%}
{% if classPercentile != null %}

{{ _('You have solved more problems than {0}% of the class').format(classPercentile) }}

{% endif %}

{{ _('Achievements') }}

{%- for b in badges -%}
{{ b.icon }}
{{ b.name }}
{{ b.desc }}
{% if not b.got and b.progress %}
{{ b.progress }}
{% endif %}
{%- endfor -%}
{% if categories.length %}

{{ _('Solved by category') }}

{%- for c in categories -%}
{{ c.name }}{{ c.count }}
{%- endfor -%}
{% endif %}
{% endblock %}