Update the Publisher Show LiveView to remove redundant information.
This commit is contained in:
@@ -4,9 +4,8 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
Publisher {@publisher.id}
|
|
||||||
<:subtitle>This is a publisher record from your database.</:subtitle>
|
|
||||||
<.header class="flex-col lg:flex-row">
|
<.header class="flex-col lg:flex-row">
|
||||||
|
{@publisher.name}
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}>
|
<.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}>
|
||||||
@@ -17,12 +16,6 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
<.list>
|
|
||||||
<:item title="Id">{@publisher.id}</:item>
|
|
||||||
|
|
||||||
<:item title="Name">{@publisher.name}</:item>
|
|
||||||
</.list>
|
|
||||||
|
|
||||||
<.back navigate={~p"/publishers"}>Back to publishers</.back>
|
<.back navigate={~p"/publishers"}>Back to publishers</.back>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user