From 6b9f06981a0714bd3028c8ee7a9b54f76032871d Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 1 Nov 2024 19:36:39 +0000 Subject: [PATCH] Show debug information in record details --- lib/music_library_web/live/record_live/show.html.heex | 5 +++++ .../live/wishlist_live/show.html.heex | 5 +++++ priv/gettext/default.pot | 10 ++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/music_library_web/live/record_live/show.html.heex b/lib/music_library_web/live/record_live/show.html.heex index 19e8b701..1069e891 100644 --- a/lib/music_library_web/live/record_live/show.html.heex +++ b/lib/music_library_web/live/record_live/show.html.heex @@ -102,6 +102,11 @@ +
+ <%= gettext("MusicBrainz data") %> +
<%= Jason.encode!(@record.musicbrainz_data, pretty: true) %>
+
+
<.back navigate={@back_url}> <%= gettext("Back to records") %> diff --git a/lib/music_library_web/live/wishlist_live/show.html.heex b/lib/music_library_web/live/wishlist_live/show.html.heex index b16a6fa1..84c2e4f8 100644 --- a/lib/music_library_web/live/wishlist_live/show.html.heex +++ b/lib/music_library_web/live/wishlist_live/show.html.heex @@ -95,6 +95,11 @@
+
+ <%= gettext("MusicBrainz data") %> +
<%= Jason.encode!(@record.musicbrainz_data, pretty: true) %>
+
+
<.back navigate={@back_url}> <%= gettext("Back to wishlist") %> diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 060e1a6d..bfff45d8 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -29,12 +29,12 @@ msgstr "" msgid "Attempting to reconnect" msgstr "" -#: lib/music_library_web/live/record_live/show.html.heex:107 +#: lib/music_library_web/live/record_live/show.html.heex:112 #, elixir-autogen, elixir-format msgid "Back to records" msgstr "" -#: lib/music_library_web/live/wishlist_live/show.html.heex:100 +#: lib/music_library_web/live/wishlist_live/show.html.heex:105 #, elixir-autogen, elixir-format msgid "Back to wishlist" msgstr "" @@ -351,3 +351,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Copy MusicBrainz ID to clipboard" msgstr "" + +#: lib/music_library_web/live/record_live/show.html.heex:106 +#: lib/music_library_web/live/wishlist_live/show.html.heex:99 +#, elixir-autogen, elixir-format +msgid "MusicBrainz data" +msgstr ""