From 15d12bd93702d446b886b5037920e9aafa687314 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Tue, 3 Sep 2024 10:10:26 +0300 Subject: [PATCH] Update the show LiveView template for Links. --- lib/link_shortener_web/live/link_live/show.html.heex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/link_shortener_web/live/link_live/show.html.heex b/lib/link_shortener_web/live/link_live/show.html.heex index 53fe938..9e8aac1 100644 --- a/lib/link_shortener_web/live/link_live/show.html.heex +++ b/lib/link_shortener_web/live/link_live/show.html.heex @@ -1,6 +1,6 @@ <.header> Link <%= @link.id %> - <:subtitle>This is a link record from your database. + <:subtitle>This is a link record. <:actions> <.link patch={~p"/links/#{@link}/show/edit"} phx-click={JS.push_focus()}> <.button>Edit link @@ -9,6 +9,9 @@ <.list> + <:item title="Name"><%= @link.name %> + <:item title="Url"><%= @link.url %> + <:item title="Shorten"><%= @link.shorten %> <.back navigate={~p"/links"}>Back to links @@ -20,6 +23,7 @@ title={@page_title} action={@live_action} link={@link} + current_user={@current_user} patch={~p"/links/#{@link}"} />