From 5d3a8ff1d6fda57d9ebad0522e7043929a4d2343 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 9 Apr 2025 15:26:00 +0100 Subject: [PATCH] Display a notice when an artist has no scrobbles --- lib/music_library_web/live/artist_live/show.html.heex | 6 ++++++ priv/gettext/default.pot | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/lib/music_library_web/live/artist_live/show.html.heex b/lib/music_library_web/live/artist_live/show.html.heex index f91b9d28..2f1af4d6 100644 --- a/lib/music_library_web/live/artist_live/show.html.heex +++ b/lib/music_library_web/live/artist_live/show.html.heex @@ -34,6 +34,12 @@ > {ngettext("1 scrobble", "%{count} scrobbles", artist_info.play_count)} + + {gettext("No scrobbles")} + <.link class={[ diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 73257045..31b096cb 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -722,3 +722,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Record wishlisted successfully" msgstr "" + +#: lib/music_library_web/live/artist_live/show.html.heex +#, elixir-autogen, elixir-format +msgid "No scrobbles" +msgstr ""