NDOJ/templates/submission/submission-list-tabs.html

18 lines
782 B
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "tabs-base.html" %}
{% block tabs %}
{{ make_tab('all_submissions_list', 'fa-list', all_submissions_link, _('All')) }}
{% if my_submissions_link or tab == 'my_submissions_tab' %}
{{ make_tab('my_submissions_tab', 'fa-user', my_submissions_link, _('Mine')) }}
{% endif %}
{% if best_submissions_link %}
{{ make_tab('best_submissions_list', 'fa-bar-chart', best_submissions_link, _('Best')) }}
{% endif %}
{% if tab == 'user_submissions_tab' %}
{{ make_tab('user_submissions_tab', 'fa-user', None, _("%(user)s's", user=tab_username)) }}
{% endif %}
{% if perms.judge.change_submission %}
{{ make_tab('admin', 'fa-edit', url('admin:judge_submission_changelist'), _('Admin')) }}
{% endif %}
{% endblock %}