Browse Source

feat: add links to menu

main
Inhji Y. 3 months ago
parent
commit
72c7c3cf0a
  1. 6
      lib/mirage_web/templates/layout/root.html.leex

6
lib/mirage_web/templates/layout/root.html.leex

@ -22,13 +22,13 @@
<header>
<nav role="navigation">
<%= active_link(@conn, @_s.header_title.value, to: "/") %> / <%= active_link(@conn, "Blog", to: "/blog") %>
<%= live_patch(@_s.header_title.value, to: "/") %> / <%= live_patch("Blog", to: "/blog") %> / <%= live_patch("Links", to: "/links") %>
<%= if not Mirage.Accounts.has_user? do %>
/ <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
/ <%= live_patch "Register", to: Routes.user_registration_path(@conn, :new) %>
<% end %>
<%= unless @current_user do %>
/ <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
/ <%= live_patch "Log in", to: Routes.user_session_path(@conn, :new) %>
<% end %>
</nav>
</header>

Loading…
Cancel
Save