Skip to content

Commit

Permalink
grmbl
Browse files Browse the repository at this point in the history
  • Loading branch information
twd2 committed Jul 25, 2017
1 parent 7bd91e9 commit 26e5136
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vj4/ui/templates/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@
<li class="nav__list-item"><a href="{{ reverse_url('domain_main', domain_id=vj4.model.builtin.DOMAIN_ID_SYSTEM) }}" class="nav__logo">&nbsp;</a></li>
{% endif %}
{{ nav_item('domain_main', 'domain_main') }}
{% if handler.has_perm(vj4.model.builtin.PERM_VIEW_PROBLEM) %}
{{ nav_item('problem_main', 'problem') }}
{% endif %}
{% if handler.has_perm(vj4.model.builtin.PERM_VIEW_TRAINING) %}
{{ nav_item('training_main', 'training') }}
{% endif %}
{% if handler.has_perm(vj4.model.builtin.PERM_VIEW_DISCUSSION) %}
{{ nav_item('discussion_main', 'discussion') }}
{% endif %}
{% if handler.has_perm(vj4.model.builtin.PERM_VIEW_CONTEST) %}
{{ nav_item('contest_main', 'contest') }}
{% endif %}
{% if handler.has_perm(vj4.model.builtin.PERM_EDIT_DESCRIPTION) or handler.has_perm(vj4.model.builtin.PERM_EDIT_PERM) %}
{{ nav_item('domain_manage', 'domain_manage') }}
{% endif %}
Expand Down

0 comments on commit 26e5136

Please sign in to comment.