NDOJ/templates/contest/contest-tabs.html

39 lines
1.8 KiB
HTML
Raw Normal View History

2022-11-27 07:23:04 +00:00
<style>
2023-01-27 23:11:10 +00:00
@media(max-width: 799px) {
.middle-right-content {
margin-left: 8px;
margin-right: 8px;
2022-11-27 07:23:04 +00:00
}
2023-01-27 23:11:10 +00:00
}
2022-11-27 07:23:04 +00:00
</style>
2022-11-27 07:03:38 +00:00
<div class="left-sidebar">
2023-09-17 05:44:07 +00:00
{% if can_access %}
{{ make_tab_item('detail', 'fa fa-info-circle', url('contest_view', contest.key), _('Info')) }}
2024-04-27 01:37:35 +00:00
{% if (contest.ended and not contest.is_in_contest(request.user)) or can_edit %}
2023-09-17 05:44:07 +00:00
{{ make_tab_item('stats', 'fa fa-pie-chart', url('contest_stats', contest.key), _('Statistics')) }}
{% endif %}
2023-01-27 23:11:10 +00:00
{% endif %}
2022-11-27 07:03:38 +00:00
2023-01-27 23:11:10 +00:00
{% if contest.start_time <= now or perms.judge.see_private_contest %}
{% if contest.can_see_own_scoreboard(request.user) %}
{{ make_tab_item('ranking', 'fa fa-bar-chart', url('contest_ranking', contest.key), _('Rankings')) }}
2023-09-17 05:44:07 +00:00
{% if request.user.is_authenticated and can_access %}
2023-01-27 23:11:10 +00:00
{{ make_tab_item('participation', 'fa fa-users', url('contest_participation_own', contest.key), _('Participation')) }}
2024-04-30 02:08:48 +00:00
{{ make_tab_item('submissions', 'fa fa-code', url('contest_submissions', contest.key), _('Submissions')) }}
2023-01-27 23:11:10 +00:00
{% endif %}
2022-11-27 07:03:38 +00:00
{% endif %}
2023-01-27 23:11:10 +00:00
{% endif %}
{% if request.user.is_superuser and contest_has_hidden_subtasks %}
2024-05-30 07:59:22 +00:00
{{ make_tab_item('resolver', 'fa fa-check', url('resolver', contest.key), _('Resolver'), force_new_page=True) }}
2023-01-27 23:11:10 +00:00
{% endif %}
{% if show_final_ranking %}
{{ make_tab_item('final_ranking', 'fa fa-bar-chart', url('contest_final_ranking', contest.key), _('Final rankings')) }}
{% endif %}
{% if can_edit %}
{% if perms.judge.moss_contest and has_moss_api_key %}
{{ make_tab_item('moss', 'fa fa-gavel', url('contest_moss', contest.key), _('MOSS')) }}
2022-11-27 07:03:38 +00:00
{% endif %}
2024-05-30 07:59:22 +00:00
{{ make_tab_item('edit', 'fa fa-edit', url('admin:judge_contest_change', contest.id), _('Edit'), force_new_page=True) }}
2023-01-27 23:11:10 +00:00
{% endif %}
2022-11-27 07:03:38 +00:00
</div>