-
+ <.alert
+ :if={not @can_scrobble}
+ color="warning"
+ title={gettext("Last.fm not connected")}
+ hide_close
+ >
+ {gettext(
+ "You need to connect your Last.fm account to scrobble. Please set up your Last.fm session key in the settings."
+ )}
+
-
-
- <.icon name="hero-exclamation-triangle" class="h-5 w-5 text-yellow-400" />
-
-
- {gettext(
- "You need to connect your Last.fm account to scrobble. Please set up your Last.fm session key in the settings."
- )}
-
-
-
-
+
+ <.button variant="ghost" size="sm" navigate={~p"/scrobble"}>
+ <.icon name="hero-arrow-left" class="icon" aria-hidden="true" data-slot="icon" />
+ {gettext("Back to search")}
+
+
-
-
-
- {@release.title}
-
-
-
- by {@release.artists |> Enum.map(& &1.name) |> Enum.join(", ")}
-
-
- {@release.date}
-
-
-
-
-
})
-
-
-
-
-
- {gettext("Release Date:")}
-
-
{@release.date}
-
-
-
- {gettext("Country:")}
-
-
{@release.country}
-
-
-
- {gettext("Barcode:")}
-
-
{@release.barcode}
-
-
-
- {gettext("Catalog Number:")}
-
-
{@release.catalog_number}
-
-
-
-
-
-
-
-
-
-
{gettext("Tracks")}
-
- <.button
- :if={@can_scrobble}
- phx-click={
- if MapSet.size(@selected_tracks) > 0,
- do: "scrobble_selected_tracks",
- else: "scrobble_release"
- }
- size="sm"
- >
- {scrobble_button_label(@selected_tracks)}
-
-
-
- <.medium
- :for={medium <- @release.media}
- can_scrobble?={@can_scrobble}
- already_scrobbled={false}
- medium={medium}
- release_artists={@release.artists}
- selected_tracks={@selected_tracks}
- media_count={MusicBrainz.Release.media_count(@release)}
- myself={nil}
+
+
+
})
~p"/images/cover-not-found.png" <> "';"}
/>
+
+
+
+
+ {@release.artists |> Enum.map(& &1.name) |> Enum.join(", ")}
+
+
+
+ {@release.title}
+
+
+
+
+ <.dl_row :if={@release.date} label={gettext("Release Date")}>
+ {@release.date}
+
+ <.dl_row :if={@release.country} label={gettext("Country")}>
+ {country_label(@release.country)} {@release.country}
+
+ <.dl_row :if={@release.barcode} label={gettext("Barcode")}>
+ {@release.barcode}
+
+ <.dl_row :if={@release.catalog_number} label={gettext("Catalog Number")}>
+ {@release.catalog_number}
+
+ <.dl_row :if={@release.media != []} label={gettext("Media")}>
+ {ngettext("1 disc", "%{count} discs", MusicBrainz.Release.media_count(@release))}
+
+
+
+
+
+
+
{gettext("Tracks")}
+
+ <.button
+ :if={@can_scrobble}
+ phx-click={
+ if MapSet.size(@selected_tracks) > 0,
+ do: "scrobble_selected_tracks",
+ else: "scrobble_release"
+ }
+ size="sm"
+ >
+ {scrobble_button_label(@selected_tracks)}
+
+
+
+ <.medium
+ :for={medium <- @release.media}
+ can_scrobble?={@can_scrobble}
+ already_scrobbled={false}
+ medium={medium}
+ release_artists={@release.artists}
+ selected_tracks={@selected_tracks}
+ media_count={MusicBrainz.Release.media_count(@release)}
+ myself={nil}
+ />
+
+
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot
index 0e07d583..1ab7af81 100644
--- a/priv/gettext/default.pot
+++ b/priv/gettext/default.pot
@@ -682,6 +682,7 @@ msgid "Oban"
msgstr ""
#: lib/music_library_web/components/record_form.ex
+#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "Release Date"
msgstr ""
@@ -1423,6 +1424,7 @@ msgid "Release Groups"
msgstr ""
#: lib/music_library_web/live/scrobble_live/index.html.heex
+#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "1 disc"
msgid_plural "%{count} discs"
@@ -1434,26 +1436,6 @@ msgstr[1] ""
msgid "Releases for \"%{title}\""
msgstr ""
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Barcode:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Catalog Number:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Country:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Release Date:"
-msgstr ""
-
#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "You need to connect your Last.fm account to scrobble. Please set up your Last.fm session key in the settings."
@@ -1909,3 +1891,58 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search for artist image online"
msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "Back"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Back to search"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Barcode"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Catalog Number"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Country"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Last.fm not connected"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "Loading releases..."
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Media"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "No release groups found for \"%{query}\""
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "Searching..."
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "Try a different search term or check the spelling"
+msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po
index ae1a5405..bbcaa896 100644
--- a/priv/gettext/en/LC_MESSAGES/default.po
+++ b/priv/gettext/en/LC_MESSAGES/default.po
@@ -682,6 +682,7 @@ msgid "Oban"
msgstr ""
#: lib/music_library_web/components/record_form.ex
+#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "Release Date"
msgstr ""
@@ -1423,6 +1424,7 @@ msgid "Release Groups"
msgstr ""
#: lib/music_library_web/live/scrobble_live/index.html.heex
+#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "1 disc"
msgid_plural "%{count} discs"
@@ -1434,26 +1436,6 @@ msgstr[1] ""
msgid "Releases for \"%{title}\""
msgstr ""
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Barcode:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Catalog Number:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format
-msgid "Country:"
-msgstr ""
-
-#: lib/music_library_web/live/scrobble_live/show.html.heex
-#, elixir-autogen, elixir-format, fuzzy
-msgid "Release Date:"
-msgstr ""
-
#: lib/music_library_web/live/scrobble_live/show.html.heex
#, elixir-autogen, elixir-format
msgid "You need to connect your Last.fm account to scrobble. Please set up your Last.fm session key in the settings."
@@ -1909,3 +1891,58 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "Search for artist image online"
msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Back"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Back to search"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Barcode"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Catalog Number"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Country"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Last.fm not connected"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Loading releases..."
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/show.html.heex
+#, elixir-autogen, elixir-format
+msgid "Media"
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "No release groups found for \"%{query}\""
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format, fuzzy
+msgid "Searching..."
+msgstr ""
+
+#: lib/music_library_web/live/scrobble_live/index.html.heex
+#, elixir-autogen, elixir-format
+msgid "Try a different search term or check the spelling"
+msgstr ""