„lib/chiya_web/components/layouts/root_public.html.heex“ ändern

This commit is contained in:
inhji 2023-03-15 16:02:23 +01:00
parent e9deb3ce03
commit 7d44053f1b

View file

@ -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>