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