From 48c0e169d9979c94136754d2fc3acaf52a9ee1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 22 Jan 2025 13:22:27 +0100 Subject: [PATCH] mix format --- priv/templates/phx.gen.live/show.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/priv/templates/phx.gen.live/show.ex b/priv/templates/phx.gen.live/show.ex index 9922ffc4fb..46379eb698 100644 --- a/priv/templates/phx.gen.live/show.ex +++ b/priv/templates/phx.gen.live/show.ex @@ -28,7 +28,8 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web @impl true def mount(%{"id" => id}, _session, socket) do - {:ok, socket + {:ok, + socket |> assign(:page_title, "Show <%= schema.human_singular %>") |> assign(:<%= schema.singular %>, <%= inspect context.alias %>.get_<%= schema.singular %>!(id))} end