From 01e5bb7467df8cefbf837d8fe79855623b3a547a Mon Sep 17 00:00:00 2001 From: Harshad Sharma Date: Mon, 13 May 2024 22:04:00 +0530 Subject: [PATCH] Disable unimplemented paths in menu --- .../components/layouts/app.html.heex | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/lib/freedive_web/components/layouts/app.html.heex b/lib/freedive_web/components/layouts/app.html.heex index 420dc72..23f0c4a 100644 --- a/lib/freedive_web/components/layouts/app.html.heex +++ b/lib/freedive_web/components/layouts/app.html.heex @@ -12,7 +12,7 @@ <.navbar_menu id="navbar_top"> - <%= if @current_user do %> + <%!-- <%= if @current_user do %> <.navbar_start> <.navbar_item has-dropdown is-hoverable> <.navbar_link> @@ -50,7 +50,7 @@ - <% end %> + <% end %> --%> <.navbar_end> <%= if @current_user do %> @@ -58,7 +58,7 @@ <%= @current_user.email %> - <.navbar_item has-dropdown is-hoverable> + <%!-- <.navbar_item has-dropdown is-hoverable> <.navbar_link> System @@ -75,7 +75,7 @@ <.link>Services - + --%> <% end %> <.navbar_item has-dropdown is-hoverable> <.navbar_link> @@ -84,22 +84,16 @@ <.navbar_dropdown> <%= if @current_user do %> - <.navbar_item> - <.link href={~p"/users/settings"}> - Settings - - - <.navbar_item> - <.link href={~p"/users/log_out"} method="delete"> - Log out - - + <.link href={~p"/users/settings"} class="navbar-item"> + Settings + + <.link href={~p"/users/log_out"} method="delete" class="navbar-item"> + Log out + <% else %> - <.navbar_item> - <.link href={~p"/users/log_in"}> - Log in - - + <.link href={~p"/users/log_in"} class="navbar-item"> + Log in + <% end %>