NDOJ/templates/user/user-tabs.html

22 lines
1.2 KiB
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "tabs-base.html" %}
{% block tabs %}
2023-01-27 23:11:10 +00:00
{{ make_tab('about', 'fa-info-circle', url('user_page', user.user.username), _('About')) }}
{{ make_tab('problems', 'fa-puzzle-piece', url('user_problems', user.user.username), _('Problems')) }}
2024-04-12 05:08:25 +00:00
{{ make_tab('submissions', 'fa-code', url('all_user_submissions', user.username), _('Submissions')) }}
{% if request.user.is_superuser and user != request.profile and not user.user.is_superuser %}
2024-06-24 19:56:00 +00:00
{{ make_tab('impersonate', 'fa-eye', url('impersonate-start', user.user.id), _('Impersonate'), force_new_page=True) }}
2023-01-27 23:11:10 +00:00
{% endif %}
{% if user == request.profile %}
{{ make_tab('bookmark', 'fa-bookmark', url('user_bookmark'), _('Bookmarks')) }}
2024-06-24 19:56:00 +00:00
{{ make_tab('edit', 'fa-gear', url('user_edit_profile'), _('Settings')) }}
2023-01-27 23:11:10 +00:00
{% else %}
{% if perms.auth.change_user %}
2024-06-24 19:56:00 +00:00
{{ make_tab('edit', 'fa-edit', url('admin:auth_user_change', user.user.id), _('Admin User'), force_new_page=True) }}
2020-01-21 06:35:58 +00:00
{% endif %}
2023-01-27 23:11:10 +00:00
{% if perms.judge.change_profile %}
2024-06-24 19:56:00 +00:00
{{ make_tab('edit', 'fa-edit', url('admin:judge_profile_change', user.id), _('Admin Profile'), force_new_page=True) }}
2020-01-21 06:35:58 +00:00
{% endif %}
2023-01-27 23:11:10 +00:00
{% endif %}
2020-01-21 06:35:58 +00:00
{% endblock %}