Update the show LiveView template for Links.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user