Show message for no records for day

This commit is contained in:
Claudio Ortolina
2025-09-03 08:03:31 +03:00
parent 8d22ec186c
commit 84c86254ac
3 changed files with 16 additions and 0 deletions
@@ -161,6 +161,12 @@ defmodule MusicLibraryWeb.StatsComponents do
id="records"
phx-update="stream"
>
<li
id="no-records-on-this-day"
class="hidden py-8 only:flex items-center justify-center text-sm text-zinc-500 dark:text-zinc-400"
>
{gettext("No records released on this day.")}
</li>
<li
:for={{id, record} <- @records}
phx-click={JS.navigate(@record_show_path.(record))}
+5
View File
@@ -1305,3 +1305,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Scrobbles"
msgstr ""
#: lib/music_library_web/components/stats_components.ex
#, elixir-autogen, elixir-format
msgid "No records released on this day."
msgstr ""
+5
View File
@@ -1305,3 +1305,8 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "Scrobbles"
msgstr ""
#: lib/music_library_web/components/stats_components.ex
#, elixir-autogen, elixir-format
msgid "No records released on this day."
msgstr ""