From eefde769dd9256e30d082dff912df3d104bfc8fe Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 3 Sep 2021 19:54:05 -0400 Subject: [PATCH] add live dashboard icon --- lib/cannery_web/live/component/topbar.html.leex | 5 +++-- lib/cannery_web/templates/layout/topbar.html.eex | 7 ------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/cannery_web/live/component/topbar.html.leex b/lib/cannery_web/live/component/topbar.html.leex index 63642d34..bbf61e9e 100644 --- a/lib/cannery_web/live/component/topbar.html.leex +++ b/lib/cannery_web/live/component/topbar.html.leex @@ -56,8 +56,9 @@ <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
  • - <%= link "LiveDashboard", class: "hover:underline", - to: Routes.live_dashboard_path(CanneryWeb.Endpoint, :home) %> + <%= link to: Routes.live_dashboard_path(CanneryWeb.Endpoint, :home) do %> + + <% end %>
  • <% end %> <% else %> diff --git a/lib/cannery_web/templates/layout/topbar.html.eex b/lib/cannery_web/templates/layout/topbar.html.eex index 53fbf6ca..6d327119 100644 --- a/lib/cannery_web/templates/layout/topbar.html.eex +++ b/lib/cannery_web/templates/layout/topbar.html.eex @@ -17,13 +17,6 @@ <% end %> - - <%= if function_exported?(Routes, :live_dashboard_path, 2) do %> -
  • - <%= link "LiveDashboard", class: "hover:underline", - to: Routes.live_dashboard_path(CanneryWeb.Endpoint, :home) %> -
  • - <% end %> <% else %>
  • <%= link "Register", class: "hover:underline",