diff --git a/lib/bones73k/util/list.ex b/lib/bones73k/util/list.ex
deleted file mode 100644
index 311c0442..00000000
--- a/lib/bones73k/util/list.ex
+++ /dev/null
@@ -1,4 +0,0 @@
-defmodule Bones73k.Util.List do
- def prepend_if(list, condition, item), do: (!!condition && [item | list]) || list
- def append_if(list, condition, item), do: (!!condition && list ++ [item]) || list
-end
diff --git a/lib/bones73k_web/templates/layout/_navbar.html.eex b/lib/bones73k_web/templates/layout/_navbar.html.eex
index e1362075..ade773de 100644
--- a/lib/bones73k_web/templates/layout/_navbar.html.eex
+++ b/lib/bones73k_web/templates/layout/_navbar.html.eex
@@ -2,7 +2,7 @@
<%= link to: Routes.page_path(@conn, :index), class: "navbar-brand" do %>
- <%= icon_div @conn, "fas-skull-crossbones", class: "icon baseline" %>
+ <%= icon_div @conn, "fas-skull-crossbones", [class: "icon baseline"] %>
Bones73k
<% end %>
@@ -12,29 +12,45 @@
+
-
+ <%= link "Properties", nav_link_opts(@conn, to: Routes.property_index_path(@conn, :index), class: "nav-link") %>
+
+
+ <%# ACTIVE page link example %>
+ <%# -
Home
-
- -
- Link
-
+ %>
+
+ <%# DISABLED page link example %>
+ <%# -
+ Disabled
+
%>
+
+ <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
+ -
+ <%= link "LiveDashboard", nav_link_opts(@conn, to: Routes.live_dashboard_path(@conn, :home), class: "nav-link") %>
+
+ <% end %>
+
-
- Dropdown
-
- -
- Disabled
-
+
-
+
+
+
+ <%= render "navbar/_user_menu.html", assigns %>
+
+
+
diff --git a/lib/bones73k_web/templates/layout/_user_menu.html.eex b/lib/bones73k_web/templates/layout/_user_menu.html.eex
deleted file mode 100644
index f281cfc6..00000000
--- a/lib/bones73k_web/templates/layout/_user_menu.html.eex
+++ /dev/null
@@ -1,10 +0,0 @@
-
-<%= if @current_user do %>
- - <%= @current_user.email %>
- - <%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %>
- - <%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %>
-<% else %>
- - <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
- - <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
-<% end %>
-
diff --git a/lib/bones73k_web/templates/layout/navbar/_user_menu.html.eex b/lib/bones73k_web/templates/layout/navbar/_user_menu.html.eex
new file mode 100644
index 00000000..a6491042
--- /dev/null
+++ b/lib/bones73k_web/templates/layout/navbar/_user_menu.html.eex
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
diff --git a/lib/bones73k_web/templates/layout/root.html.leex b/lib/bones73k_web/templates/layout/root.html.leex
index 42e29631..4cfa7310 100644
--- a/lib/bones73k_web/templates/layout/root.html.leex
+++ b/lib/bones73k_web/templates/layout/root.html.leex
@@ -13,18 +13,6 @@
<%= render "_navbar.html", assigns %>
- <%# %>
-
-
- - <%= link "Properties", to: Routes.property_index_path(@conn, :index) %>
- <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
- - <%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %>
- <% end %>
-
- <%= render "_user_menu.html", assigns %>
-
-
<%= @inner_content %>