{% set can_view = submission_layout(submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %} {% set hidden = submission.contest_object and submission.contest_object.format_name == "ioi16" and not request.user.is_superuser %} {% if hidden %}
{%- if submission.is_graded -%} ??? / {{ submission.case_total|floatformat(0) }} {%- else -%} {%- endif -%}
? | {{ submission.language.short_display_name }}
{% else %}
{%- 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 -%}
{{ submission.short_status }} | {{ 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 hidden %}
{%- 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 hidden %}
---
---
{% else %}
{% if submission.status in ('QU', 'P', 'G', 'CE', 'IE', 'AB') %}
---
---
{% else %} {% if "TLE" != submission.result %}
{{ (submission.time or 0)|floatformat(2) }}s
{% else %}
---
{% endif %} {# No one actually like IEC prefixes, Jinja2. #}
{{ (submission.memory_bytes|filesizeformat(True)).replace('i', '') }}
{% endif %}
{% endif %}