Skip to content

Commit 4ba5683

Browse files
committed
Display more external results.
1 parent 414b06e commit 4ba5683

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

webapp/templates/jury/partials/submission_list.html.twig

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@
8181
<th scope="col">score</th>
8282
{% endif %}
8383
{% if showExternalResult and not showExternalTestcases %}
84-
<th scope="col">external result</th>
84+
<th scope="col">ext. result</th>
85+
{% if is_scoring %}
86+
<th scope="col">ext. score</th>
87+
{% endif %}
8588
{% endif %}
8689
{% if not showExternalResult or not showExternalTestcases %}
8790
<th scope="col" class="table-button-head-left">verified</th>
@@ -168,13 +171,15 @@
168171
{{ submission | printValidJurySubmissionResult }}
169172
</a>
170173
</td>
171-
<td class="right">
172-
{% if submission.score is not null %}
173-
{{ submission.score | number_format(2, '.', '') }}
174-
{% else %}
175-
{{ '-' }}
176-
{% endif %}
177-
</td>
174+
{% if is_scoring %}
175+
<td class="right">
176+
{% if submission.score is not null %}
177+
{{ submission.score | number_format(2, '.', '') }}
178+
{% else %}
179+
{{ '-' }}
180+
{% endif %}
181+
</td>
182+
{% endif %}
178183
{% if showExternalResult and not showExternalTestcases %}
179184
{% if submission.externalJudgements.empty %}
180185
{% set externalJudgement = null %}
@@ -192,6 +197,15 @@
192197
{% endif %}
193198
</a>
194199
</td>
200+
{% if is_scoring %}
201+
<td class="{{ tdExtraClass }}">
202+
{% if externalJudgement is not null and externalJudgement.score is not null %}
203+
{{ externalJudgement.score | number_format(2, '.', '') }}
204+
{% else %}
205+
{{ '-' }}
206+
{% endif %}
207+
</td>
208+
{% endif %}
195209
{% endif %}
196210
{% if not showExternalResult or not showExternalTestcases %}
197211
{%- set claim = false %}

webapp/templates/jury/submission.html.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@
409409
{% if submission.importError %}
410410
External result: {{ externalJudgement.result | printValidJuryResult }}
411411
{% else %}
412-
(external: {{ externalJudgement.result | printValidJuryResult }})
412+
(external: {{ externalJudgement.result | printValidJuryResult }}
413+
{% if submission.problem.scoringProblem %}
414+
, score: {{ "%.2f" | format(externalJudgement.score) }}
415+
{% endif %}
416+
)
413417
{% endif %}
414418
{%- endif %}
415419
{%- if selectedJudging is not null and judgehosts is not empty -%}

0 commit comments

Comments
 (0)