Skip to content

Commit

Permalink
Show testcase folder in jury UI
Browse files Browse the repository at this point in the history
Needed for #2059, this now
shows besides the rank (order of execution) also the ID in the database
as these can be in different order. On the filesystem we have a form of
`/2/2/testcase001` where this can now be checked against the UI.
  • Loading branch information
vmcj committed Nov 8, 2023
1 parent 2caea0b commit ec52400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/templates/jury/problem_testcases.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<th></th>
{% endif %}
<th class="testrank">#</th>
<th>judgehost dir</th>
<th class="testsample">sample</th>
<th>download</th>
<th>size</th>
Expand Down Expand Up @@ -62,6 +63,7 @@
title="Move testcase down"><i class="fas fa-arrow-down"></i></a>
{% endif %}
</td>
<td rowspan="2">{{ "%05d"|format(testcase.testcaseid) }}</td>
<td rowspan="2" class="testsample">
<input type="checkbox" name="sample[{{ testcase.rank }}]" value="sample"
{% if testcase.sample %}checked{% endif %} />
Expand Down

0 comments on commit ec52400

Please sign in to comment.