From 7b2c726b2c8dfa1d22f15203d1e1198a75072463 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Thu, 24 Apr 2025 22:05:00 +0300 Subject: [PATCH] Update the Publisher Show LiveView to remove redundant information. --- .../live/publisher_live/show.ex | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/decentralised_book_index_web/live/publisher_live/show.ex b/lib/decentralised_book_index_web/live/publisher_live/show.ex index 47e3f55..abb9c3f 100644 --- a/lib/decentralised_book_index_web/live/publisher_live/show.ex +++ b/lib/decentralised_book_index_web/live/publisher_live/show.ex @@ -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. <.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 - <.list> - <:item title="Id">{@publisher.id} - - <:item title="Name">{@publisher.name} - - <.back navigate={~p"/publishers"}>Back to publishers """ end