<.record_cover record={@record} class="w-full rounded-lg drop-shadow-sm" />

<.artist_links joinphrase_class="text-sm" artists={@record.artists} />

{@record.title}

<.record_colors record={@record} /> {Records.Record.format_release_date(@record.release_date)} · {format_label( @record.format )} · {type_label(@record.type)}

<.dropdown id={"actions-#{@record.id}"} placement="bottom-end"> <:toggle class="h-5 block"> {gettext("Actions")} <.icon name="hero-ellipsis-vertical" class="-mt-1 h-5 w-5 text-zinc-500 dark:text-zinc-400 cursor-pointer" aria-hidden="true" data-slot="icon" /> <.focus_wrap id={"actions-#{@record.id}-focus-wrap"}> <.dropdown_link id={"actions-#{@record.id}-edit"} patch={~p"/collection/#{@record}/show/edit"} > <.icon name="hero-pencil-square" class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" aria-hidden="true" data-slot="icon" /> {gettext("Edit")} <.dropdown_link id={"actions-#{@record.id}-refresh-cover"} phx-click={JS.push("refresh_cover", value: %{id: @record.id})} > <.icon name="hero-photo" class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" aria-hidden="true" data-slot="icon" /> {gettext("Refresh cover")} <.dropdown_link id={"actions-#{@record.id}-refresh-mb-data"} phx-click={JS.push("refresh_musicbrainz_data", value: %{id: @record.id})} > <.icon name="hero-arrow-path" class="h-4 w-4 mr-1 phx-click-loading:animate-spin" aria-hidden="true" data-slot="icon" /> {gettext("Refresh MB data")} <.dropdown_link id={"actions-#{@record.id}-populate-genres"} phx-click={JS.push("populate_genres", value: %{id: @record.id})} > <.icon name="hero-sparkles" class="h-4 w-4 mr-1 phx-click-loading:animate-shake" aria-hidden="true" data-slot="icon" /> {gettext("Populate genres")} <.dropdown_link id={"actions-#{@record.id}-extract-colors-fast"} phx-click={JS.push("extract_colors", value: %{id: @record.id, method: :fast})} > <.icon name="hero-paint-brush" class="h-4 w-4 mr-1 phx-click-loading:animate-shake" aria-hidden="true" data-slot="icon" /> {gettext("Extract colors (fast)")} <.dropdown_link id={"actions-#{@record.id}-extract-colors-slow"} phx-click={JS.push("extract_colors", value: %{id: @record.id, method: :slow})} > <.icon name="hero-paint-brush" class="h-4 w-4 mr-1 phx-click-loading:animate-shake" aria-hidden="true" data-slot="icon" /> {gettext("Extract colors (slow)")} <.dropdown_separator /> <.dropdown_link id={"actions-#{@record.id}-delete"} phx-click={JS.push("delete", value: %{id: @record.id})} data-confirm={gettext("Are you sure?")} class="text-red-900! hover:bg-red-50! dark:text-red-500! dark:hover:bg-red-900/30! dark:hover:text-red-600!" > <.icon name="hero-trash" class="h-4 w-4 mr-1 phx-click-loading:animate-spin" aria-hidden="true" data-slot="icon" /> {gettext("Delete")}
<%!-- TODO: replace with OSS version --%>
{gettext("ID")}
{@record.id}
{gettext("Genres")}
<.link :for={genre <- @record.genres} class="mr-2 text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300" patch={~p"/collection?#{%{query: ~s(genre:"#{genre}")}}"} > {genre}
{gettext("MusicBrainz ID")}
{@record.musicbrainz_id}
{gettext("Purchased on")}
{Records.Record.format_as_date(@record.purchased_at)}
{gettext("Published releases")}
{Records.Record.release_count(@record)}
{gettext("Collected release")}
{gettext("No release selected")} <.release_summary :if={@record.selected_release_id} release={Records.Record.selected_release(@record)} /> @record.id} class="hidden" > {@record.selected_release_id}
0} class="py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0" >
{gettext("Includes")}
  • {included_release_group.artists} - {included_release_group.title}
{gettext("Inserted at")}
{Records.Record.format_as_date(@record.inserted_at)}
{gettext("Updated at")}
{Records.Record.format_as_date(@record.updated_at)}
{gettext("Last listened at")}
{@last_listened_track && localize_scrobbled_at(@last_listened_track.scrobbled_at_uts, @timezone)}
<.json_viewer title={gettext("MusicBrainz data")} data={@record.musicbrainz_data} /> <.live_component id="release-with-tracks" sheet_id="release-with-tracks-sheet" module={MusicLibraryWeb.ReleaseComponent} record={@record} /> <.live_component id="record-notes" sheet_id="record-notes-sheet" module={MusicLibraryWeb.NotesComponent} entity={:record} musicbrainz_id={@record.musicbrainz_id} /> <.structured_modal :if={@live_action == :edit} id="record-modal" on_close={JS.patch(~p"/collection/#{@record}")} > <.live_component module={MusicLibraryWeb.RecordFormComponent} id={@record.id} action={@live_action} show_purchased_at={true} record={@record} patch={~p"/collection/#{@record}"} />