Only show the "log out" option in the top menu bar & moving the theme toggle there.
This commit is contained in:
@ -49,13 +49,6 @@ defmodule BeetRoundServerWeb.Layouts do
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-none">
|
|
||||||
<ul class="flex flex-column px-1 space-x-4 items-center">
|
|
||||||
<li>
|
|
||||||
<.theme_toggle />
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="px-4 py-20 sm:px-6 lg:px-8">
|
<main class="px-4 py-20 sm:px-6 lg:px-8">
|
||||||
|
|||||||
@ -33,23 +33,11 @@
|
|||||||
<body>
|
<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">
|
<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 %>
|
<%= if @current_scope do %>
|
||||||
<li>
|
|
||||||
{@current_scope.user.email}
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link href={~p"/users/settings"}>Settings</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<.link href={~p"/users/log-out"} method="delete">Log out</.link>
|
<.link href={~p"/users/log-out"} method="delete">Log out</.link>
|
||||||
</li>
|
</li>
|
||||||
<% else %>
|
|
||||||
<li>
|
|
||||||
<.link href={~p"/users/register"}>Register</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link href={~p"/users/log-in"}>Log in</.link>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<Layouts.theme_toggle />
|
||||||
</ul>
|
</ul>
|
||||||
{@inner_content}
|
{@inner_content}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
v{Application.spec(:beet_round_server, :vsn)}
|
v{Application.spec(:beet_round_server, :vsn)}
|
||||||
</small>
|
</small>
|
||||||
</h1>
|
</h1>
|
||||||
<Layouts.theme_toggle />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-balance">
|
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-balance">
|
||||||
|
|||||||
Reference in New Issue
Block a user