1
0
Fork 0

修改:使用新的/<username>/userpage路由

Alpha-snapshot20230425
王梓铭 2023-04-26 18:49:59 +08:00
parent b88bc8f36b
commit 5654fbf9bc
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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 %}