{# Render a list of submissions for a jury page #} {# @var \App\Entity\ExternalJudgement externalJudgement #} {% if showExternalResult is not defined %} {% set showExternalResult = false %} {% endif %} {% if showExternalTestcases is not defined %} {% set showExternalTestcases = false %} {% endif %} {% set rowSpan = 1 %} {% set tdExtraClass = '' %} {% if showExternalResult and showExternalTestcases %} {% set rowSpan = 3 %} {% set tdExtraClass = ' thick-border' %} {% endif %} {% if submissions is empty %}
No submissions
{% else %}
{{ submissionCounts.total }} submitted {{ submissionCounts.correct }} correct {% if submissionCounts.unverified is defined and submissionCounts.unverified > 0 %} {{ submissionCounts.unverified }} unverified {% endif %} {% if submissionCounts.shadowUnverified is defined and submissionCounts.shadowUnverified > 0 %} {{ submissionCounts.shadowUnverified }} shadow differences unverified {% endif %} {% if submissionCounts.ignored > 0 %} {{ submissionCounts.ignored }} ignored {% endif %} {% if submissionCounts.judging > 0 %} {{ submissionCounts.judging }} judging {% endif %} {% if submissionCounts.queued > 0 %} {{ submissionCounts.queued }} queued (from {{submissionCounts.perteam}} teams) {% endif %}
{% if showExternalResult and showExternalTestcases %} {% else %} {% endif %} {%- if showContest %} {%- endif %} {%- if rejudging is defined %} {%- endif %} {% if showExternalResult and showExternalTestcases %} {% else %} {% endif %} {% if showExternalResult and not showExternalTestcases %} {% endif %} {% if not showExternalResult or not showExternalTestcases %} {% endif %} {%- if showTestcases is defined and showTestcases %} {%- endif %} {%- for submission in submissions %} {%- if rejudging is defined %} {%- set link = path('jury_submission', {submitId: submission.submitid, rejudgingid: rejudging.rejudgingid}) %} {%- else %} {%- set link = path('jury_submission', {submitId: submission.submitid}) %} {%- endif %} {% if showExternalResult and showExternalTestcases %} {% endif %} {%- if showContest %} {%- endif %} {% if showExternalResult and showExternalTestcases %} {% endif %} {%- if rejudging is defined %} {%- endif %} {% if showExternalResult and not showExternalTestcases %} {% if submission.externalJudgements.empty %} {% set externalJudgement = null %} {% else %} {% set externalJudgement = submission.externalJudgements.first %} {% endif %} {% endif %} {% if not showExternalResult or not showExternalTestcases %} {%- set claim = false %} {%- if submission.judgings.first is empty or submission.judgings.first.result is empty -%} {%- set verified = '' %} {%- set juryMember = '' %} {%- else %} {%- set juryMember = submission.judgings.first.juryMember %} {%- if submission.judgings.first.verified %} {%- set verified = 'yes' %} {%- else %} {%- set verified = 'no' %} {%- if submission.judgings.first.juryMember is empty %} {%- set claim = true %} {%- else %} {%- set verified = 'claimed' %} {%- endif %} {%- endif %} {%- endif %} {%- if claim %} {%- set claimArg = {claim: 1} %} {%- else %} {%- set claimArg = {unclaim: 1} %} {%- endif %} {% if not showExternalResult or not showExternalTestcases %} {% endif %} {% endif %} {%- if showTestcases is defined and showTestcases %} {%- endif %} {% if showExternalResult and showExternalTestcases %} {% if submission.externalJudgements.empty %} {% set externalJudgement = null %} {% else %} {% set externalJudgement = submission.externalJudgements.first %} {% endif %} {% if external_ccs_submission_url is not empty %} {% set externalSubmissionUrl = submission | externalCcsUrl %} {% else %} {% set externalSubmissionUrl = null %} {% endif %} {% endif %} {%- endfor %}
IDIDcontesttime team problem langold result{%-if rejudging is defined %}new {% endif %}result{%- if rejudging is defined %}new {% endif %}resultexternal resultverified bytest results
Local s{{ submission.submitid }} {% if submission.externalid %} ({{ submission.externalid }}) {% endif %} c{{ submission.contest.cid }} {{ submission.submittime | printtime(null, submission.contest) }} {{ submission.team | entityIdBadge('t') }} {{ submission.team.effectiveName | u.truncate(teamname_max_length, '…') }} {{ submission.contestProblem | problemBadge }} {{ submission.language | entityIdBadge }} Local {{ submission.oldResult | printValidJuryResult }} {%- if rejudging is defined %} ⇝ {% endif %} {{ submission | printValidJurySubmissionResult }} {% if submission.externalid is null %} {{- 'n / a' | printValidJuryResult -}} {% elseif externalJudgement is null or externalJudgement.result is empty %} {{- 'pending' | printValidJuryResult -}} {% else %} {{- externalJudgement.result | printValidJuryResult -}} {% endif %} {{ verified }} {%- if rejudging is defined %} {%- set claimLink = path('jury_submission', claimArg | merge({submitId: submission.submitid, rejudgingid: rejudging.rejudgingid})) %} {%- else %} {%- set claimLink = path('jury_submission', claimArg | merge({submitId: submission.submitid})) %} {%- endif %} {%- if claim -%} claim {%- elseif (not submission.judgings.first or not submission.judgings.first.verified) and juryMember == app.user.username -%} unclaim {%- else -%} {{ juryMember }} {%- endif -%} {{- submission | testcaseResults -}}
External {{ submission.externalid }} External {% if externalJudgement is null or externalJudgement.result is empty %} {{- 'pending' | printValidJuryResult -}} {% else %} {{- externalJudgement.result | printValidJuryResult -}} {% endif %} {{- submission | testcaseResults(true) -}}
{% if externalJudgement is not null and (not submission.judgings.first or submission.judgings.first.result != externalJudgement.result) %} {% include 'jury/partials/verify_form.html.twig' with { label: 'Shadow difference verified', judging: externalJudgement, form_action: path('jury_shadow_difference_verify', {extjudgementid: externalJudgement.extjudgementid}), show_form: true, show_icat: false} %} {% endif %}
{% endif %}