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

{{ _('Contest Rating Compute') }}

{{ _('Import Contest Results') }}

{{ _('Upload contest ranking CSV file to preview and calculate rating changes using Codeforces formula') }}

{{ _('CSV should contain columns: # (rank), 用户 (username). Only users with submissions will be included in rating calculation. Rank 0 will be excluded.') }}

{{ _('Revert Operations') }}

{{ _('Revert the most recent rating operation (contest import or manual update)') }}


{{ _('Operation History') }}

{% if archives %}
{% for archive in archives %}

{{ archive.contestName }}

{{ archive.operationType|title }} - {{ datetimeSpan(archive.operationDate, false, 'YYYY-MM-DD HH:mm:ss')|safe }} {% if archive.operatorUid %} by User #{{ archive.operatorUid }} {% endif %}
{% if archive.description %}

{{ archive.description }}

{% endif %}
{{ _('Participants') }}: {{ archive.participants|length }}
{% endfor %}
{% else %}

{{ _('No operation history found.') }}

{% endif %}
{% endblock %}