|
1 | 1 | {% extends "jury/base.html.twig" %} |
2 | 2 | {% import "jury/jury_macros.twig" as macros %} |
3 | 3 |
|
4 | | -{% block title %}Testcases for p{{ problem.externalid }} - {{ parent() }}{% endblock %} |
| 4 | +{% block title %}Testcases for {{ problem.externalid }} - {{ parent() }}{% endblock %} |
5 | 5 |
|
6 | 6 | {% block extrahead %} |
7 | 7 | {{ parent() }} |
|
73 | 73 | {% endif %} |
74 | 74 | <td rowspan="2" class="testrank"> |
75 | 75 | {% if allowEdit %} |
76 | | - <a href="{{ path('jury_problem_testcase_move', {'probId': problem.probid, 'rank': testcase.rank, 'direction': 'up'}) }}" |
| 76 | + <a href="{{ path('jury_problem_testcase_move', {'probId': problem.externalid, 'rank': testcase.rank, 'direction': 'up'}) }}" |
77 | 77 | title="Move testcase up"><i class="fas fa-arrow-up"></i></a><br> |
78 | 78 | {% endif %} |
79 | 79 | {{ testcase.rank }} |
80 | 80 | {% if allowEdit %} |
81 | 81 | <br> |
82 | | - <a href="{{ path('jury_problem_testcase_move', {'probId': problem.probid, 'rank': testcase.rank, 'direction': 'down'}) }}" |
| 82 | + <a href="{{ path('jury_problem_testcase_move', {'probId': problem.externalid, 'rank': testcase.rank, 'direction': 'down'}) }}" |
83 | 83 | title="Move testcase down"><i class="fas fa-arrow-down"></i></a> |
84 | 84 | {% endif %} |
85 | 85 | </td> |
|
88 | 88 | {% if testcase.sample %}checked{% endif %} /> |
89 | 89 | </td> |
90 | 90 | <td class="filename"> |
91 | | - <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.probid, 'rank': testcase.rank, 'type': 'input'}) }}"> |
| 91 | + <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.externalid, 'rank': testcase.rank, 'type': 'input'}) }}"> |
92 | 92 | {{ testcase.downloadName | split('/') | last }}.{{ extensionMapping.input }} |
93 | 93 | </a> |
94 | 94 | </td> |
|
114 | 114 | </tr> |
115 | 115 | <tr> |
116 | 116 | <td class="filename"> |
117 | | - <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.probid, 'rank': testcase.rank, 'type': 'output'}) }}"> |
| 117 | + <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.externalid, 'rank': testcase.rank, 'type': 'output'}) }}"> |
118 | 118 | {{ testcase.downloadName | split('/') | last }}.{{ extensionMapping.output }} |
119 | 119 | </a> |
120 | 120 | </td> |
|
132 | 132 | {% endif %} |
133 | 133 | <td class="testimage"> |
134 | 134 | {% if row.imageSize > 0 %} |
135 | | - <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.probid, 'rank': testcase.rank, 'type': 'image'}) }}"> |
136 | | - <span class="filename">p{{ problem.probid }}.t{{ testcase.rank }}.{{ testcase.imageType }}</span> |
| 135 | + <a href="{{ path('jury_problem_testcase_fetch', {'probId': problem.externalid, 'rank': testcase.rank, 'type': 'image'}) }}"> |
| 136 | + <span class="filename">{{ problem.externalid }}.t{{ testcase.rank }}.{{ testcase.imageType }}</span> |
137 | 137 | </a> |
138 | 138 | {% if allowEdit %} |
139 | 139 | |
|
0 commit comments