{% set can_view = submission.is_accessible_by(profile, check_contest=False) or is_in_editable_contest %}
{{ link_user(submission.user) }}
{% if show_problem %} {% endif %}
{% if in_hidden_subtasks_contest and submission.is_graded %} {% set ns = namespace(is_first=False) %} {% for batch in submission.batches %} {% if batch.id %} {{ '+' if ns.is_first else '' }} {% set ns.is_first = True %} {{ batch.points|floatformat(0) }} {% endif %} {% endfor %} {% else %} {% if not in_hidden_subtasks_contest or submission.status in ('IE', 'CE', 'AB') %} {{ submission.short_status }} {% endif %} {% endif %}
{%- if submission.is_graded -%} {%- if submission.status in ('IE', 'CE', 'AB') -%} --- {%- else -%} {{ submission.case_points|floatformat(0) }} / {{ submission.case_total|floatformat(0) }} {%- endif -%} {%- else -%} {% if submission.status == 'G' and not in_hidden_subtasks_contest %} {%- if submission.current_testcase > 0 -%} {{ _('%(point)s / #%(case)s', point=submission.points|floatformat(1), case=submission.current_testcase-1) }} {%- endif -%} {% endif %} {%- endif -%}
{{ submission.language.short_display_name }}
{{ relative_time(submission.date, format=_("d/m/Y"))}} {% if not hide_contest_in_row and submission.contest_object_id %} {% endif %}
{% if submission.status in ('QU', 'P', 'G', 'CE', 'IE', 'AB') or in_hidden_subtasks_contest %}
---
---
{% else %} {% if "TLE" != submission.result %}
{{ (submission.time or 0)|floatformat(2) }}s
{% else %}
---
{% endif %}
{{ (submission.memory_bytes|filesizeformat(True)).replace('i', '') }}
{% endif %} {% if can_view %}
{{ _('view') }} {% if perms.judge.rejudge_submission %} · {{ _('rejudge') }} {% endif %} {% if perms.judge.change_submission %} · {{ _('admin') }} {% endif %}
{% endif %}