{% set can_view = submission_layout(submission, profile_id, request.user, editable_problem_ids, completed_problem_ids, tester_problem_ids) %}
{%- if submission.is_graded -%} {%- if submission.status in ('IE', 'CE', 'AB') -%} --- {%- else -%} {{ submission.case_points|floatformat(0) }} / {{ submission.case_total|floatformat(0) }} {%- endif -%} {%- else -%} {%- 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 %} {{ submission.language.short_display_name }} {% endif %}
{% if show_problem %}
{{ problem_name }}
{% endif %}
{{ link_user(submission.user) }} {{ relative_time(submission.date) }} {% if not request.in_contest_mode and submission.contest_object_id %} {% endif %}
{% if submission.status == 'G' and not in_hidden_subtasks_contest %}
{%- if submission.current_testcase > 0 -%} {{ _('Point %(point)s / Case #%(case)s', point=submission.points|floatformat(1), case=submission.current_testcase) }} {%- else -%} ... {%- endif -%}
{% endif %} {% if can_view %}
{{ _('view') }} {% if perms.judge.rejudge_submission %} · {{ _('rejudge') }} {% endif %} {% if perms.judge.change_submission %} · {{ _('admin') }} {% endif %}
{% 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 %}