From 5654fbf9bc3ae85eec621a4e6e2ecd1f6c6c3b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E9=97=AE=E4=B8=89=E4=B8=8D=E7=9F=A5?= <178428409@qq.com> Date: Wed, 26 Apr 2023 18:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B0=E7=9A=84/<username>/userpage=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/admin_index.html | 2 +- app/templates/mainpage_get.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/admin_index.html b/app/templates/admin_index.html index 68ee68f..f62a137 100644 --- a/app/templates/admin_index.html +++ b/app/templates/admin_index.html @@ -30,7 +30,7 @@ <div class="collapse navbar-collapse" id="navbarNav"> <ul class="navbar-nav"> <li class="nav-item"> - <a class="nav-link" href="/{{ username }}">返回 {{ username }}</a> + <a class="nav-link" href="/{{ username }}/userpage">返回 {{ username }}</a> </li> </ul> </div> diff --git a/app/templates/mainpage_get.html b/app/templates/mainpage_get.html index 3594571..344943d 100644 --- a/app/templates/mainpage_get.html +++ b/app/templates/mainpage_get.html @@ -23,7 +23,7 @@ <div class="container-fluid"> <p><b><font size="+3" color="red">English Pal - Learn English smartly!</font></b></p> {% if session['logged_in'] %} - <a href="/{{ session['username'] }}">{{ session['username'] }}</a> + <a href="/{{ session['username'] }}/userpage">{{ session['username'] }}</a> {% if session['username'] == admin_name %} <a href="/admin">管理</a></p> {% endif %}