Add some more metadata to records release on this day
This commit is contained in:
@@ -152,9 +152,9 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
<h2 class="mt-1 flex font-semibold text-sm sm:text-base leading-5 text-zinc-700 dark:text-zinc-300 text-wrap">
|
<h2 class="mt-1 flex font-semibold text-sm sm:text-base leading-5 text-zinc-700 dark:text-zinc-300 text-wrap">
|
||||||
{record.title}
|
{record.title}
|
||||||
</h2>
|
</h2>
|
||||||
<.released_how_long_ago record={record} current_date={@current_date} />
|
<p class="mt-1 text-xs leading-5 text-zinc-500 dark:text-zinc-400">
|
||||||
<p class="sm:hidden mt-1 text-xs leading-5 text-zinc-500 dark:text-zinc-400">
|
<.released_how_long_ago record={record} current_date={@current_date} />
|
||||||
{format_label(record.format)} · {type_label(record.type)}
|
· {format_label(record.format)} · {type_label(record.type)}
|
||||||
<span :if={record.purchased_at}>
|
<span :if={record.purchased_at}>
|
||||||
·
|
·
|
||||||
<span class="sr-only">
|
<span class="sr-only">
|
||||||
@@ -168,14 +168,6 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
/>
|
/>
|
||||||
{Records.Record.format_as_date(record.purchased_at)}
|
{Records.Record.format_as_date(record.purchased_at)}
|
||||||
</span>
|
</span>
|
||||||
<span :if={!record.purchased_at}>
|
|
||||||
·
|
|
||||||
<span class="sr-only">
|
|
||||||
{gettext("Wishlisted on")}
|
|
||||||
</span>
|
|
||||||
<.icon name="hero-star" class="-mt-1 h-4 w-4" aria-hidden="true" data-slot="icon" />
|
|
||||||
{Records.Record.format_as_date(record.inserted_at)}
|
|
||||||
</span>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -196,8 +188,8 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
)
|
)
|
||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<p class={[
|
<span class={[
|
||||||
"mt-1 text-xs leading-5",
|
"text-xs leading-5",
|
||||||
!special_year?(@years) && "text-zinc-500 dark:text-zinc-400",
|
!special_year?(@years) && "text-zinc-500 dark:text-zinc-400",
|
||||||
special_year?(@years) &&
|
special_year?(@years) &&
|
||||||
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-200 via-yellow-500 to-yellow-700 animate-shine"
|
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-200 via-yellow-500 to-yellow-700 animate-shine"
|
||||||
@@ -207,7 +199,7 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
"%{count} years ago",
|
"%{count} years ago",
|
||||||
@years
|
@years
|
||||||
)}
|
)}
|
||||||
</p>
|
</span>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -906,7 +906,6 @@ msgid "Last year"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_components.ex
|
#: lib/music_library_web/components/record_components.ex
|
||||||
#: lib/music_library_web/components/stats_components.ex
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Wishlisted on"
|
msgid "Wishlisted on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -906,7 +906,6 @@ msgid "Last year"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_components.ex
|
#: lib/music_library_web/components/record_components.ex
|
||||||
#: lib/music_library_web/components/stats_components.ex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Wishlisted on"
|
msgid "Wishlisted on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user