Update the show LiveView template for Links.

dev
KKlochko 8 months ago
parent d3c3e210d5
commit 15d12bd937

@ -1,6 +1,6 @@
<.header> <.header>
Link <%= @link.id %> Link <%= @link.id %>
<:subtitle>This is a link record from your database.</:subtitle> <:subtitle>This is a link record.</:subtitle>
<:actions> <:actions>
<.link patch={~p"/links/#{@link}/show/edit"} phx-click={JS.push_focus()}> <.link patch={~p"/links/#{@link}/show/edit"} phx-click={JS.push_focus()}>
<.button>Edit link</.button> <.button>Edit link</.button>
@ -9,6 +9,9 @@
</.header> </.header>
<.list> <.list>
<:item title="Name"><%= @link.name %></:item>
<:item title="Url"><%= @link.url %></:item>
<:item title="Shorten"><%= @link.shorten %></:item>
</.list> </.list>
<.back navigate={~p"/links"}>Back to links</.back> <.back navigate={~p"/links"}>Back to links</.back>
@ -20,6 +23,7 @@
title={@page_title} title={@page_title}
action={@live_action} action={@live_action}
link={@link} link={@link}
current_user={@current_user}
patch={~p"/links/#{@link}"} patch={~p"/links/#{@link}"}
/> />
</.modal> </.modal>

Loading…
Cancel
Save