Only show the "log out" option in the top menu bar & moving the theme toggle there.

This commit is contained in:
2026-02-19 16:20:35 +01:00
parent 24eeacc425
commit 6b31c6023f
3 changed files with 1 additions and 21 deletions

View File

@ -49,13 +49,6 @@ defmodule BeetRoundServerWeb.Layouts do
</span>
</a>
</div>
<div class="flex-none">
<ul class="flex flex-column px-1 space-x-4 items-center">
<li>
<.theme_toggle />
</li>
</ul>
</div>
</header>
<main class="px-4 py-20 sm:px-6 lg:px-8">

View File

@ -33,23 +33,11 @@
<body>
<ul class="menu menu-horizontal w-full relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end">
<%= if @current_scope do %>
<li>
{@current_scope.user.email}
</li>
<li>
<.link href={~p"/users/settings"}>Settings</.link>
</li>
<li>
<.link href={~p"/users/log-out"} method="delete">Log out</.link>
</li>
<% else %>
<li>
<.link href={~p"/users/register"}>Register</.link>
</li>
<li>
<.link href={~p"/users/log-in"}>Log in</.link>
</li>
<% end %>
<Layouts.theme_toggle />
</ul>
{@inner_content}
</body>

View File

@ -11,7 +11,6 @@
v{Application.spec(:beet_round_server, :vsn)}
</small>
</h1>
<Layouts.theme_toggle />
</div>
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-balance">