Skip to content

Commit

Permalink
Revert "use else is more elegant"
Browse files Browse the repository at this point in the history
This reverts commit c563745.
  • Loading branch information
wumingzhilian committed May 15, 2024
1 parent f7879c7 commit ddbbf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_theme/templates/components/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{ navitem("管理面板", url_for("admin.view"), "fa-wrench") }}
{% endif %}

{% else %}
{% if not is_admin() %}
{{ navitem("简介", url_for("pwncollege_users.view_self"), "fa-user-circle") }}
{% endif %}
{{ navitem("设置", url_for("views.settings"), "fa-cogs") }}
Expand Down

0 comments on commit ddbbf12

Please sign in to comment.