no need to logout on main page when we get an account page

get it
This commit is contained in:
Minecon724 2024-09-15 12:48:52 +02:00
parent 6a11f7ec6c
commit 1cb2510bfb
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -8,12 +8,21 @@
<ul> <ul>
<li><a href="/edit">Create a page</a></li> <li><a href="/edit">Create a page</a></li>
{#if !user:loggedIn} <li><a href="/auth">
<li><a href="/auth">Login or register</a></li> {#if user:loggedIn}
{#else} Logged in as {user:name}
<li><a href="/auth/logout">Logout ({user:name})</a></li> {#else}
{/if} Login or register
<li><a href="/theme">{#if theme:darkTheme}Light mode{#else}Dark mode{/if}</a></li> {/if}
</a></li>
<li><a href="/theme">
{#if theme:darkTheme}
Light mode
{#else}
Dark mode
{/if}
</a></li>
<li><a href="/page/TalkPages/Terms of Service">Terms of Service</a></li>
</ul> </ul>
<small>Running <a href="/page/TalkPages">TalkPages</a> version {config:["quarkus.application.version"]}</small> <small>Running <a href="/page/TalkPages">TalkPages</a> version {config:["quarkus.application.version"]}</small>