Commit
•
fa95531
1
Parent(s):
96a7c90
chore: Add logged-out navigation links
Browse files
lib/medical_transcription_web/components/layouts/app.html.heex
CHANGED
@@ -1,4 +1,21 @@
|
|
1 |
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<.flash_group flash={@flash} />
|
3 |
<%= @inner_content %>
|
4 |
</div>
|
|
|
1 |
<div>
|
2 |
+
<nav class="pb-2 mb-4 flex justify-end divide-x border-b border-slate-200">
|
3 |
+
<%= if is_nil(@current_user) do %>
|
4 |
+
<.link
|
5 |
+
href={~p"/users/register"}
|
6 |
+
class="text-[0.8125rem] text-center px-6 leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
|
7 |
+
>
|
8 |
+
Register
|
9 |
+
</.link>
|
10 |
+
<.link
|
11 |
+
href={~p"/users/log_in"}
|
12 |
+
class="text-[0.8125rem] text-center px-6 leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
|
13 |
+
>
|
14 |
+
Log in
|
15 |
+
</.link>
|
16 |
+
<% end %>
|
17 |
+
</nav>
|
18 |
+
|
19 |
<.flash_group flash={@flash} />
|
20 |
<%= @inner_content %>
|
21 |
</div>
|