Skip to content

Commit 97ae23a

Browse files
Fix shadow differences submissions table for scoring contests
1 parent 8f1b0e9 commit 97ae23a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
</a>
173173
</td>
174174
{% if is_scoring %}
175-
<td class="right">
175+
<td class="{{ tdExtraClass }} right">
176176
{% if submission.score is not null %}
177177
{{ submission.score | number_format(2, '.', '') }}
178178
{% else %}
@@ -292,12 +292,21 @@
292292
{% endif %}
293293
</a>
294294
</td>
295+
{% if is_scoring %}
296+
<td class="right">
297+
{% if externalJudgement.score is not null %}
298+
{{ externalJudgement.score | number_format(2, '.', '') }}
299+
{% else %}
300+
{{ '-' }}
301+
{% endif %}
302+
</td>
303+
{% endif %}
295304
<td class="testcase-results">
296305
{{- submission | testcaseResults(true) -}}
297306
</td>
298307
</tr>
299308
<tr>
300-
<td colspan="3" class="inline-verify-form">
309+
<td colspan="{% if is_scoring %}4{% else %}3{% endif %}" class="inline-verify-form">
301310
{% if externalJudgement is not null and (not submission.judgings.first or submission.judgings.first.result != externalJudgement.result) %}
302311
{% include 'jury/partials/verify_form.html.twig' with {
303312
label: 'Shadow difference verified',

0 commit comments

Comments
 (0)