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