From 9e8ecb8b890308a7a0629840f96c6948823f3623 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Wed, 10 Mar 2021 11:44:33 -0500 Subject: [PATCH] streamlining login further --- .../templates/layout/_navbar.html.eex | 17 ++++++++++++----- .../templates/layout/navbar/_user_menu.html.eex | 9 +-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/shift73k_web/templates/layout/_navbar.html.eex b/lib/shift73k_web/templates/layout/_navbar.html.eex index 768add50..808d5cf5 100644 --- a/lib/shift73k_web/templates/layout/_navbar.html.eex +++ b/lib/shift73k_web/templates/layout/_navbar.html.eex @@ -8,11 +8,18 @@ <% end %> - + <%= if @current_user do %> + + <% else %> + <%= link nav_link_opts(@conn, to: Routes.user_session_path(@conn, :new), class: "btn btn-outline-light") do %> + <%= icon_div @conn, "bi-door-open", [class: "icon baseline", style: "margin-right:0.125rem;"] %> + Log in + <% end %> + <% end %>