Display purchased on in record sets record picker

This commit is contained in:
Claudio Ortolina
2026-02-21 21:52:46 +00:00
parent d25d68255f
commit 5868fa0219
3 changed files with 18 additions and 2 deletions
@@ -99,9 +99,23 @@ defmodule MusicLibraryWeb.RecordSetLive.RecordPicker do
{Record.artist_names(@record)}
</p>
<p class="mt-1 text-xs leading-5 text-zinc-500 dark:text-zinc-400">
{Record.format_release_date(@record.release_date)} · {type_label(@record.type)} · {format_label(
@record.format
{Record.format_release_date(@record.release_date)} · {format_label(@record.format)} · {type_label(
@record.type
)}
<span :if={@record.purchased_at}>
·
<span class="sr-only">
{gettext("Purchased on")}
</span>
<.icon
name="hero-banknotes"
class="h-4 w-4"
aria-hidden="true"
data-slot="icon"
/>
{Record.format_as_date(@record.purchased_at)}
</span>
</p>
</div>
<div class="flex-none">
+1
View File
@@ -158,6 +158,7 @@ msgstr ""
#: lib/music_library_web/components/record_components.ex
#: lib/music_library_web/components/stats_components.ex
#: lib/music_library_web/live/collection_live/show.html.heex
#: lib/music_library_web/live/record_set_live/record_picker.ex
#, elixir-autogen, elixir-format
msgid "Purchased on"
msgstr ""
+1
View File
@@ -158,6 +158,7 @@ msgstr ""
#: lib/music_library_web/components/record_components.ex
#: lib/music_library_web/components/stats_components.ex
#: lib/music_library_web/live/collection_live/show.html.heex
#: lib/music_library_web/live/record_set_live/record_picker.ex
#, elixir-autogen, elixir-format
msgid "Purchased on"
msgstr ""