„lib/chiya_web/components/layouts/root_public.html.heex“ ändern
This commit is contained in:
parent
e9deb3ce03
commit
7d44053f1b
1 changed files with 1 additions and 49 deletions
|
@ -12,55 +12,7 @@
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-white antialiased">
|
<body class="bg-white antialiased">
|
||||||
<ul class="relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end bg-black">
|
<.admin_bar current_user={@current_user} />
|
||||||
<%= if @current_user do %>
|
|
||||||
<li class="text-xs leading-6 text-gray-100">
|
|
||||||
<%= @current_user.email %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link
|
|
||||||
href={~p"/user"}
|
|
||||||
class="text-xs leading-6 text-gray-100 font-semibold hover:text-gray-300"
|
|
||||||
>
|
|
||||||
Profile
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link
|
|
||||||
href={~p"/admin"}
|
|
||||||
class="text-xs leading-6 text-gray-100 font-semibold hover:text-gray-300"
|
|
||||||
>
|
|
||||||
Admin
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link
|
|
||||||
href={~p"/user/log_out"}
|
|
||||||
method="delete"
|
|
||||||
class="text-xs leading-6 text-gray-100 font-semibold hover:text-gray-300"
|
|
||||||
>
|
|
||||||
Log out
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<% else %>
|
|
||||||
<li>
|
|
||||||
<.link
|
|
||||||
href={~p"/user/register"}
|
|
||||||
class="text-xs leading-6 text-gray-100 font-semibold hover:text-gray-300"
|
|
||||||
>
|
|
||||||
Register
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<.link
|
|
||||||
href={~p"/user/log_in"}
|
|
||||||
class="text-xs leading-6 text-gray-100 font-semibold hover:text-gray-300"
|
|
||||||
>
|
|
||||||
Log in
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue