2023-01-27 23:11:10 +00:00
|
|
|
{% if not show_contest_mode %}
|
2024-08-15 08:08:36 +00:00
|
|
|
{% set query_string = request.GET.urlencode() %}
|
|
|
|
{% set problem_feed_url = url('problem_feed') %}
|
|
|
|
{% set problem_list_url = url('problem_list') %}
|
|
|
|
{% if search_query %}
|
|
|
|
{% set problem_feed_url = problem_feed_url + '?' + query_string %}
|
|
|
|
{% set problem_list_url = problem_list_url + '?' + query_string %}
|
|
|
|
{% endif %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="left-sidebar">
|
2024-08-15 08:08:36 +00:00
|
|
|
{{ make_tab_item('feed', 'far fa-lightbulb', problem_feed_url, _('Feed')) }}
|
|
|
|
{{ make_tab_item('list', 'fa fa-list', problem_list_url, _('List')) }}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if request.user.is_superuser %}
|
2024-05-30 07:59:22 +00:00
|
|
|
{{ make_tab_item('admin', 'fa fa-edit', url('admin:judge_problem_changelist'), _('Admin'), force_new_page=True) }}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-05-28 04:28:22 +00:00
|
|
|
{% endif %}
|