diff --git a/dojo_theme/templates/components/navbar.html b/dojo_theme/templates/components/navbar.html index 604b1fd41..839426983 100644 --- a/dojo_theme/templates/components/navbar.html +++ b/dojo_theme/templates/components/navbar.html @@ -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") }}