Skip to content

Commit

Permalink
use else is more elegant
Browse files Browse the repository at this point in the history
  • Loading branch information
mudongliang committed May 15, 2024
1 parent 7a85ce0 commit c563745
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 %}

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

0 comments on commit c563745

Please sign in to comment.