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>
<li><a href="/edit">Create a page</a></li>
{#if !user:loggedIn}
<li><a href="/auth">Login or register</a></li>
{#else}
<li><a href="/auth/logout">Logout ({user:name})</a></li>
{/if}
<li><a href="/theme">{#if theme:darkTheme}Light mode{#else}Dark mode{/if}</a></li>
<li><a href="/auth">
{#if user:loggedIn}
Logged in as {user:name}
{#else}
Login or register
{/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>
<small>Running <a href="/page/TalkPages">TalkPages</a> version {config:["quarkus.application.version"]}</small>