Show "Biography not available" notice

This commit is contained in:
Claudio Ortolina
2024-12-03 09:55:20 +00:00
parent 6519a8b3e8
commit 4dc1228a2d
2 changed files with 8 additions and 4 deletions
@@ -23,6 +23,9 @@
>
{render_bio(artist_info.bio)}
</div>
<div :if={!@artist_info.ok?} class="bio mt-4 text-sm leading-5 text-zinc-500 dark:text-zinc-400">
{gettext("Biography not available")}
</div>
<div :if={@artist_records.collection !== []} class="mt-4">
<h2 class="font-semibold text-base sm:text-lg leading-5 text-zinc-700 dark:text-zinc-300">
+5 -4
View File
@@ -51,7 +51,7 @@ msgid "Choose a value"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:13
#: lib/music_library_web/live/artist_live/show.html.heex:29
#: lib/music_library_web/live/artist_live/show.html.heex:32
#: lib/music_library_web/live/collection_live/index.ex:77
#: lib/music_library_web/live/collection_live/show.ex:102
#: lib/music_library_web/live/collection_live/show.ex:119
@@ -328,7 +328,7 @@ msgid "Welcome to your Music Library"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:19
#: lib/music_library_web/live/artist_live/show.html.heex:67
#: lib/music_library_web/live/artist_live/show.html.heex:70
#: lib/music_library_web/live/wishlist_live/index.ex:75
#: lib/music_library_web/live/wishlist_live/show.ex:102
#, elixir-autogen, elixir-format
@@ -478,12 +478,13 @@ msgid "Dev dashboard"
msgstr ""
#: lib/music_library_web/live/artist_live/show.ex:53
#: lib/music_library_web/live/artist_live/show.html.heex:27
#, elixir-autogen, elixir-format
msgid "Biography not available"
msgstr ""
#: lib/music_library_web/live/artist_live/show.html.heex:47
#: lib/music_library_web/live/artist_live/show.html.heex:85
#: lib/music_library_web/live/artist_live/show.html.heex:50
#: lib/music_library_web/live/artist_live/show.html.heex:88
#, elixir-autogen, elixir-format
msgid "View details"
msgstr ""