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

{{ _('Rating榜') }}

{% for tier in ratingTiers %} {{ tier.title }} {{ tier.min }}+ {% endfor %}
{% if not config.enabled %}
{{ _('当前子域尚未启用竞技 Rating。') }}
{% elif not rows.length %} {{ nothing.render('暂无 Rating 记录。') }} {% else %} {% for row in rows %} {% endfor %}
{{ _('排名') }} {{ _('用户') }} {{ _('Rating') }} {{ _('段位') }} {{ _('最高') }} {{ _('场次') }} {{ _('最近变化') }}
{{ row.rank }} {% if udict[row.uid] %}{{ user.render_inline(udict[row.uid], badge=false) }}{% else %}UID {{ row.uid }}{% endif %} {{ row.rating|round }} {{ row.title }} {{ row.maxRating|round }} {{ row.ratedCount }} {% if row.lastDelta > 0 %} +{{ row.lastDelta }} {% elif row.lastDelta < 0 %} {{ row.lastDelta }} {% else %} 0 {% endif %}
{{ paginator.render(page, upcount) }} {% endif %}
{% endblock %}