diff --git a/lib/yearbook_web/live/class_live/show.ex b/lib/yearbook_web/live/class_live/show.ex index d67bb3b..1267954 100644 --- a/lib/yearbook_web/live/class_live/show.ex +++ b/lib/yearbook_web/live/class_live/show.ex @@ -1,4 +1,5 @@ defmodule YearbookWeb.ClassLive.Show do + @moduledoc false use YearbookWeb, :live_view alias Yearbook.University diff --git a/lib/yearbook_web/live/class_live/show.html.heex b/lib/yearbook_web/live/class_live/show.html.heex index 25ea6d2..a82cc7a 100644 --- a/lib/yearbook_web/live/class_live/show.html.heex +++ b/lib/yearbook_web/live/class_live/show.html.heex @@ -2,8 +2,8 @@

Show Class

<%= if @live_action in [:edit] do %> - <.modal return_to={Routes.class_show_path(@socket, :show, @class)}> - <.live_component module={YearbookWeb.ClassLive.FormComponent} id={@class.id} title={@page_title} action={@live_action} class={@class} return_to={Routes.class_show_path(@socket, :show, @class)} /> + <.modal return_to={Routes.admin_class_show_path(@socket, :show, @class)}> + <.live_component module={YearbookWeb.ClassLive.FormComponent} id={@class.id} title={@page_title} action={@live_action} class={@class} return_to={Routes.admin_class_show_path(@socket, :show, @class)} /> <% end %> @@ -14,5 +14,5 @@ - <%= live_patch("Edit", to: Routes.class_show_path(@socket, :edit, @class), class: "button") %> | <%= live_redirect("Back", to: Routes.class_index_path(@socket, :index)) %> + <%= live_patch("Edit", to: Routes.admin_class_show_path(@socket, :edit, @class), class: "button") %> | <%= live_redirect("Back", to: Routes.class_index_path(@socket, :index)) %>