Skip to content

Commit 4f9494e

Browse files
committed
Display the links
Handle the case where a jury user can't reach the config page. Without it we would break the Traversal test.
1 parent b406e7d commit 4f9494e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

webapp/templates/jury/check_judgings.html.twig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,19 @@
9999
{{ checkJudgings.verifyResults('earlier', 'Verified earlier', earlier, true) }}
100100
{{ checkJudgings.verifyResults('nomatch', 'Without magic string', nomatch, true) }}
101101

102+
{% if problems != [] %}
103+
<h2>Problem runtime analytics</h2>
104+
You probably want to
105+
{%- if not is_granted('ROLE_ADMIN') %} let an admin {% endif %}
106+
{%- if is_granted('ROLE_ADMIN') %}<a href="{{ path('jury_config') }}">{% endif %}
107+
fully
108+
{%- if is_granted('ROLE_ADMIN') %}</a>{% endif %}
109+
judge all submissions with enough overshoot to see the maximum runtime for <code>Accepted</code>
110+
solutions and tune those against expected <code>Time Limit Exceeded</code> solutions.<br>
111+
{% for p in problems %}
112+
{% set link = path('analysis_problem', {'probid': p.probid, 'view': 'hidden'}) %}
113+
<a href="{{ link }}">{{ p | problemBadge }}</a>
114+
{% endfor %}
115+
{% endif %}
116+
102117
{% endblock %}

0 commit comments

Comments
 (0)