Skip to content

Commit d66221b

Browse files
committed
Make results in submission list of rejudgings more clear.
1 parent 7deedde commit d66221b

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@
6060
<th scope="col" colspan="2">team</th>
6161
<th scope="col">problem</th>
6262
<th scope="col">lang</th>
63+
{%- if rejudging is defined %}
64+
<th scope="col">old result</th>
65+
{%- endif %}
6366
{% if showExternalResult and showExternalTestcases %}
64-
<th scope="col" colspan="2">result</th>
67+
<th scope="col" colspan="2">{%-if rejudging is defined %}new {% endif %}result</th>
6568
{% else %}
66-
<th scope="col">result</th>
69+
<th scope="col">{%- if rejudging is defined %}new {% endif %}result</th>
6770
{% endif %}
6871
{% if showExternalResult and not showExternalTestcases %}
6972
<th scope="col">external result</th>
@@ -72,12 +75,7 @@
7275
<th scope="col" class="table-button-head-left">verified</th>
7376
<th scope="col" class="table-button-head-right">by</th>
7477
{% endif %}
75-
{%- if rejudging is defined %}
76-
77-
<th scope="col">old result</th>
78-
{%- endif %}
7978
{%- if showTestcases is defined and showTestcases %}
80-
8179
<th scope="col" class="not-sortable not-searchable table-button-head-right-right">test results</th>
8280
{%- endif %}
8381

@@ -146,8 +144,16 @@
146144
</a>
147145
</td>
148146
{% endif %}
147+
{%- if rejudging is defined %}
148+
<td class="{{ tdExtraClass }}"><a href="{{ path('jury_submission', {submitId: submission.submitid}) }}">
149+
{{ submission.oldResult | printValidJuryResult }}
150+
</a></td>
151+
{%- endif %}
149152
<td class="{{ tdExtraClass }}">
150153
<a href="{{ link }}">
154+
{%- if rejudging is defined %}
155+
156+
{% endif %}
151157
{{ submission | printValidJurySubmissionResult }}
152158
</a>
153159
</td>
@@ -211,14 +217,7 @@
211217
</td>
212218
{% endif %}
213219
{% endif %}
214-
{%- if rejudging is defined %}
215-
216-
<td class="{{ tdExtraClass }}"><a href="{{ path('jury_submission', {submitId: submission.submitid}) }}">
217-
{{ submission.oldResult | printValidJuryResult }}
218-
</a></td>
219-
{%- endif %}
220220
{%- if showTestcases is defined and showTestcases %}
221-
222221
<td class="testcase-results{{ tdExtraClass }} table-button-head-right-right">
223222
{{- submission | testcaseResults -}}
224223
</td>

0 commit comments

Comments
 (0)