diff --git a/webapp/templates/jury/partials/submission_list.html.twig b/webapp/templates/jury/partials/submission_list.html.twig index ebca3502fb..03e2729cba 100644 --- a/webapp/templates/jury/partials/submission_list.html.twig +++ b/webapp/templates/jury/partials/submission_list.html.twig @@ -121,7 +121,205 @@ {{ submission.submittime | printtime(null, submission.contest) }} - + + + {{ submission.team | entityIdBadge('t') }} + + + + + {{ submission.team.effectiveName | u.truncate(teamname_max_length, '…') }} + + + + {{ submission.contestProblem | problemBadge }} + + + {{ submission.language.langid }} + + {% if showExternalResult and showExternalTestcases %} + + + Local + + + {% endif %} + + + {{ submission | printValidJurySubmissionResult }} + + + {% if showExternalResult and not showExternalTestcases %} + {% if submission.externalJudgements.empty %} + {% set externalJudgement = null %} + {% else %} + {% set externalJudgement = submission.externalJudgements.first %} + {% endif %} + + + {% if submission.externalid is null %} + {{- 'n / a' | printValidJuryResult -}} + {% elseif externalJudgement is null or externalJudgement.result is empty %} + {{- 'pending' | printValidJuryResult -}} + {% else %} + {{- externalJudgement.result | printValidJuryResult -}} + {% 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 %} + {{ verified }} + {% if not showExternalResult or not showExternalTestcases %} + + {%- 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 -%} + + {% endif %} + {% endif %} + {%- if rejudging is defined %} + + + {{ submission.oldResult | printValidJuryResult }} + + {%- endif %} + {%- if showTestcases is defined and showTestcases %} + + + {{- submission | testcaseResults -}} + + {%- 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 %} + + + 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 %} + {%- endfor %} + + + + {%- 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 %} + + + Local + + + {% endif %} + + + s{{ submission.submitid }} + {% if submission.externalid %} + ({{ submission.externalid }}) + {% endif %} + + + {%- if showContest %} + c{{ submission.contest.cid }} + {%- endif %} + + + {{ submission.submittime | printtime(null, submission.contest) }} + + {{ submission.team | entityIdBadge('t') }}