<.flash_group flash={@flash} />
diff --git a/lib/music_library_web/controllers/stats_controller.ex b/lib/music_library_web/controllers/stats_controller.ex
index d2cdd4f5..7aacb5c5 100644
--- a/lib/music_library_web/controllers/stats_controller.ex
+++ b/lib/music_library_web/controllers/stats_controller.ex
@@ -6,6 +6,6 @@ defmodule MusicLibraryWeb.StatsController do
def index(conn, _params) do
records_count = Records.count_records()
record = Records.get_latest_record!()
- render(conn, :index, records_count: records_count, record: record)
+ render(conn, :index, records_count: records_count, record: record, nav_section: :dashboard)
end
end
diff --git a/lib/music_library_web/controllers/stats_html/index.html.heex b/lib/music_library_web/controllers/stats_html/index.html.heex
index 732c87e3..ed097715 100644
--- a/lib/music_library_web/controllers/stats_html/index.html.heex
+++ b/lib/music_library_web/controllers/stats_html/index.html.heex
@@ -1,6 +1,4 @@
-
Music Library
-
-
diff --git a/lib/music_library_web/live/record_live/index.ex b/lib/music_library_web/live/record_live/index.ex
index bca77147..41e89c60 100644
--- a/lib/music_library_web/live/record_live/index.ex
+++ b/lib/music_library_web/live/record_live/index.ex
@@ -25,6 +25,7 @@ defmodule MusicLibraryWeb.RecordLive.Index do
{:ok,
socket
+ |> assign(:nav_section, :records)
|> assign(:record_list_params, record_list_params)
|> stream(:records, records)}
end
diff --git a/lib/music_library_web/live/record_live/show.ex b/lib/music_library_web/live/record_live/show.ex
index 414e5918..789585bb 100644
--- a/lib/music_library_web/live/record_live/show.ex
+++ b/lib/music_library_web/live/record_live/show.ex
@@ -12,6 +12,7 @@ defmodule MusicLibraryWeb.RecordLive.Show do
def handle_params(%{"id" => id}, _, socket) do
{:noreply,
socket
+ |> assign(:nav_section, :records)
|> assign(:page_title, page_title(socket.assigns.live_action))
|> assign(:record, Records.get_record!(id))}
end