Update to new interpolation syntax
Includes a fix to a brittle test that failed due to changes in the number of linebreaks.
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<div class="mt-4 px-4 sm:px-6 lg:px-8">
|
||||
<h1 class="mt-1 flex font-semibold text-base lg:text-2xl leading-5 text-zinc-700 dark:text-zinc-300 text-wrap">
|
||||
<%= @artist.name %>
|
||||
{@artist.name}
|
||||
</h1>
|
||||
<p
|
||||
:if={artist_info = @artist_info.ok? && @artist_info.result}
|
||||
class="bio mt-2 text-sm leading-5 text-zinc-500 dark:text-zinc-400"
|
||||
>
|
||||
<%= (artist_info.bio || gettext("Biography not available")) |> raw() %>
|
||||
{(artist_info.bio || gettext("Biography not available")) |> raw()}
|
||||
</p>
|
||||
|
||||
<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">
|
||||
<%= gettext("Collection") %>
|
||||
{gettext("Collection")}
|
||||
</h2>
|
||||
<ul
|
||||
role="list"
|
||||
@@ -29,19 +29,19 @@
|
||||
class="absolute inset-0 focus:outline-none"
|
||||
phx-click={JS.navigate(~p"/collection/#{record}")}
|
||||
>
|
||||
<span class="sr-only"><%= gettext("View details") %></span>
|
||||
<span class="sr-only">{gettext("View details")}</span>
|
||||
</button>
|
||||
</div>
|
||||
<p class="pointer-events-none mt-2 block truncate text-sm font-medium text-zinc-900 dark:text-zinc-300">
|
||||
<%= record.title %>
|
||||
{record.title}
|
||||
</p>
|
||||
<p class="pointer-events-none block text-sm font-medium text-zinc-500">
|
||||
<%= Records.Record.format_long_label(record.format) %> · <%= Records.Record.type_long_label(
|
||||
{Records.Record.format_long_label(record.format)} · {Records.Record.type_long_label(
|
||||
record.type
|
||||
) %>
|
||||
)}
|
||||
</p>
|
||||
<p class="pointer-events-none block text-sm font-medium text-zinc-500">
|
||||
<%= Records.Record.format_release(record.release) %>
|
||||
{Records.Record.format_release(record.release)}
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<div :if={@artist_records.wishlist !== []} class="mt-4">
|
||||
<h2 class="font-semibold text-base sm:text-lg leading-5 text-zinc-700 dark:text-zinc-300">
|
||||
<%= gettext("Wishlist") %>
|
||||
{gettext("Wishlist")}
|
||||
</h2>
|
||||
<ul
|
||||
role="list"
|
||||
@@ -67,19 +67,19 @@
|
||||
class="absolute inset-0 focus:outline-none"
|
||||
phx-click={JS.navigate(~p"/wishlist/#{record}")}
|
||||
>
|
||||
<span class="sr-only"><%= gettext("View details") %></span>
|
||||
<span class="sr-only">{gettext("View details")}</span>
|
||||
</button>
|
||||
</div>
|
||||
<p class="pointer-events-none mt-2 block truncate text-sm font-medium text-zinc-900 dark:text-zinc-300">
|
||||
<%= record.title %>
|
||||
{record.title}
|
||||
</p>
|
||||
<p class="pointer-events-none block text-sm font-medium text-zinc-500">
|
||||
<%= Records.Record.format_long_label(record.format) %> · <%= Records.Record.type_long_label(
|
||||
{Records.Record.format_long_label(record.format)} · {Records.Record.type_long_label(
|
||||
record.type
|
||||
) %>
|
||||
)}
|
||||
</p>
|
||||
<p class="pointer-events-none block text-sm font-medium text-zinc-500">
|
||||
<%= Records.Record.format_release(record.release) %>
|
||||
{Records.Record.format_release(record.release)}
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user