{% extends "layout/basic.html" %} {% import "components/user.html" as user with context %} {% import "components/nothing.html" as nothing with context %} {% block content %}

{{ _('Ranking') }}

{% if groups.length %}
{% endif %}
{% if groupCompare %}
{{ _('Your group «{0}» averages {1} solved problems vs {2} for the class.').format(groupCompare.groupName, groupCompare.groupAvg, groupCompare.classAvg) }}
{% endif %}
{% if not ranking.length %} {{ nothing.render('Sorry, there are no users in this domain.') }} {% else %} {%- for r in ranking -%} {%- endfor -%}
{{ _('Rank') }} {{ _('Username') }} {{ _('Solved') }}
{% if r.rank == 1 %}🥇{% elif r.rank == 2 %}🥈{% elif r.rank == 3 %}🥉{% else %}{{ r.rank }}{% endif %} {{ user.render_inline(r.udoc) }} {{ r.solved }}
{% endif %}
{% endblock %}