diff --git a/templates/contest/contest-tabs.html b/templates/contest/contest-tabs.html index 3cf2a79b34..de1f2467a3 100644 --- a/templates/contest/contest-tabs.html +++ b/templates/contest/contest-tabs.html @@ -6,6 +6,10 @@ {{ make_tab('stats', 'fa-pie-chart', url('contest_stats', contest.key), _('Statistics')) }} {% endif %} + {% if is_editor or (is_tester and contest.can_see_own_testing_scoreboard(request.user)) %} + {{ make_tab('testing', 'fa-flask', url('contest_testing', contest.key), _('Testing')) }} + {% endif %} + {% if contest.start_time <= now or perms.judge.see_private_contest %} {% if contest.can_see_own_scoreboard(request.user) %} {{ make_tab('ranking', 'fa-bar-chart', url('contest_ranking', contest.key), _('Rankings')) }} @@ -28,10 +32,9 @@ {% if request.user.is_authenticated %} {% if contest.started or is_editor or is_tester %} - {% set in_contest = contest.is_in_contest(request.user) %} {% if contest.ended %} {# Allow users to leave the virtual contest #} - {% if in_contest %} + {% if is_in_contest %}
+ {% elif can_test %} + {% elif can_spectate %}