From c56374501622ebfba92cac5015a17524aa7b7895 Mon Sep 17 00:00:00 2001 From: Dongliang Mu Date: Wed, 15 May 2024 14:04:06 +0800 Subject: [PATCH] use else is more elegant --- dojo_theme/templates/components/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo_theme/templates/components/navbar.html b/dojo_theme/templates/components/navbar.html index 839426983..604b1fd41 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 %} - {% if not is_admin() %} + {% else %} {{ navitem("简介", url_for("pwncollege_users.view_self"), "fa-user-circle") }} {% endif %} {{ navitem("设置", url_for("views.settings"), "fa-cogs") }}