2023-03-05 16:07:40 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" style="scrollbar-gutter: stable;">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
|
|
<.live_title suffix=" · Phoenix Framework">
|
|
|
|
<%= assigns[:page_title] || "Chiya" %>
|
|
|
|
</.live_title>
|
|
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
|
|
|
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="bg-white antialiased">
|
2023-03-05 18:09:32 +01:00
|
|
|
<ul class="relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end bg-black">
|
2023-03-05 16:13:00 +01:00
|
|
|
<%= if @current_user do %>
|
2023-03-06 11:42:35 +01:00
|
|
|
<li class="text-xs leading-6 text-zinc-100">
|
2023-03-05 16:13:00 +01:00
|
|
|
<%= @current_user.email %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<.link
|
2023-03-07 21:24:24 +01:00
|
|
|
href={~p"/user"}
|
2023-03-06 11:42:35 +01:00
|
|
|
class="text-xs leading-6 text-zinc-100 font-semibold hover:text-zinc-300"
|
2023-03-05 16:13:00 +01:00
|
|
|
>
|
2023-03-07 21:24:24 +01:00
|
|
|
Profile
|
2023-03-05 16:13:00 +01:00
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<.link
|
2023-03-07 21:15:26 +01:00
|
|
|
href={~p"/user/log_out"}
|
2023-03-05 16:13:00 +01:00
|
|
|
method="delete"
|
2023-03-06 11:42:35 +01:00
|
|
|
class="text-xs leading-6 text-zinc-100 font-semibold hover:text-zinc-300"
|
2023-03-05 16:13:00 +01:00
|
|
|
>
|
|
|
|
Log out
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<.link
|
2023-03-07 21:15:26 +01:00
|
|
|
href={~p"/user/register"}
|
2023-03-06 11:42:35 +01:00
|
|
|
class="text-xs leading-6 text-zinc-100 font-semibold hover:text-zinc-300"
|
2023-03-05 16:13:00 +01:00
|
|
|
>
|
|
|
|
Register
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<.link
|
2023-03-07 21:15:26 +01:00
|
|
|
href={~p"/user/log_in"}
|
2023-03-06 11:42:35 +01:00
|
|
|
class="text-xs leading-6 text-zinc-100 font-semibold hover:text-zinc-300"
|
2023-03-05 16:13:00 +01:00
|
|
|
>
|
|
|
|
Log in
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2023-03-05 16:07:40 +01:00
|
|
|
<%= @inner_content %>
|
|
|
|
</body>
|
|
|
|
</html>
|