- <%= gettext("Welcome to your Music Library") %>
+ {gettext("Welcome to your Music Library")}
<.form class="space-y-6" for={@form} action={~p"/sessions/create"}>
- <%= gettext("Password") %>
+ {gettext("Password")}
- <%= gettext("Login") %>
+ {gettext("Login")}
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 e191e716..84247548 100644
--- a/lib/music_library_web/live/artist_live/show.html.heex
+++ b/lib/music_library_web/live/artist_live/show.html.heex
@@ -1,17 +1,17 @@
- <%= @artist.name %>
+ {@artist.name}
- <%= (artist_info.bio || gettext("Biography not available")) |> raw() %>
+ {(artist_info.bio || gettext("Biography not available")) |> raw()}
- <%= gettext("Collection") %>
+ {gettext("Collection")}
- <%= gettext("View details") %>
+ {gettext("View details")}
- <%= record.title %>
+ {record.title}
- <%= 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
- ) %>
+ )}
- <%= Records.Record.format_release(record.release) %>
+ {Records.Record.format_release(record.release)}
@@ -49,7 +49,7 @@
- <%= gettext("Wishlist") %>
+ {gettext("Wishlist")}
- <%= gettext("View details") %>
+ {gettext("View details")}
- <%= record.title %>
+ {record.title}
- <%= 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
- ) %>
+ )}
- <%= Records.Record.format_release(record.release) %>
+ {Records.Record.format_release(record.release)}
diff --git a/lib/music_library_web/live/collection_live/index.html.heex b/lib/music_library_web/live/collection_live/index.html.heex
index 72130c2d..9914937f 100644
--- a/lib/music_library_web/live/collection_live/index.html.heex
+++ b/lib/music_library_web/live/collection_live/index.html.heex
@@ -14,17 +14,17 @@
/>
<.link patch={~p"/collection/import"}>
- <.button><%= gettext("Import") %>
+ <.button>{gettext("Import")}
- <%= gettext(
+ {gettext(
"Showing %{visible} of %{total} records",
%{visible: Enum.count(@streams.records), total: @record_list_params.total_entries}
)
- |> raw() %>
+ |> raw()}
@@ -53,22 +53,22 @@
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
>
- <%= artist.name %>
+ {artist.name}
- <%= record.title %>
+ {record.title}
- <%= Records.Record.format_release(record.release) %>
+ {Records.Record.format_release(record.release)}
- · <%= 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
- ) %>
+ )}
0}>
·
- <%= gettext("Number of included records") %>
+ {gettext("Number of included records")}
- <%= Records.Record.child_release_groups_count(record) %>
+ {Records.Record.child_release_groups_count(record)}
@@ -88,13 +88,13 @@
- <%= 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
- ) %>
+ )}
0}>
·
- <%= gettext("Number of included records") %>
+ {gettext("Number of included records")}
- <%= Records.Record.child_release_groups_count(record) %>
+ {Records.Record.child_release_groups_count(record)}
@@ -118,7 +118,7 @@
phx-click={toggle_actions_menu(record.id)}
phx-click-away={close_actions_menu(record.id)}
>
-
<%= gettext("Open options") %>
+
{gettext("Open options")}
<.icon
name="hero-ellipsis-vertical"
class="-mt-1 h-5 w-5"
@@ -153,7 +153,7 @@
id={"actions-#{record.id}-show"}
navigate={~p"/collection/#{record}"}
>
- <%= gettext("Show") %>
+ {gettext("Show")}
- <%= gettext("View on MusicBrainz") %>
+ {gettext("View on MusicBrainz")}
<.link
@@ -173,7 +173,7 @@
id={"actions-#{record.id}-edit"}
patch={~p"/collection/#{record}/edit"}
>
- <%= gettext("Edit") %>
+ {gettext("Edit")}
<.link
@@ -184,7 +184,7 @@
phx-click={JS.push("delete", value: %{id: record.id}) |> hide("##{id}")}
data-confirm={gettext("Are you sure?")}
>
- <%= gettext("Delete") %>
+ {gettext("Delete")}
diff --git a/lib/music_library_web/live/collection_live/show.html.heex b/lib/music_library_web/live/collection_live/show.html.heex
index ecc7eeea..bc15bf68 100644
--- a/lib/music_library_web/live/collection_live/show.html.heex
+++ b/lib/music_library_web/live/collection_live/show.html.heex
@@ -14,46 +14,46 @@
class="text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/artists/#{artist.musicbrainz_id}"}
>
- <%= artist.name %>
+ {artist.name}
- <%= @record.title %>
+ {@record.title}
- <%= Records.Record.format_release(@record.release) %> · <%= Records.Record.format_long_label(
+ {Records.Record.format_release(@record.release)} · {Records.Record.format_long_label(
@record.format
- ) %> · <%= Records.Record.type_long_label(@record.type) %>
+ )} · {Records.Record.type_long_label(@record.type)}
<.link patch={~p"/collection/#{@record}/show/edit"} phx-click={JS.push_focus()}>
<.button type="button" class="relative inline-flex items-center rounded-r-none">
- <%= gettext("Edit") %>
+ {gettext("Edit")}
<.link phx-click={JS.push("refresh_cover", value: %{id: @record.id})}>
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
- <%= gettext("Refresh") %>
+ {gettext("Refresh")}
<.icon
name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true"
data-slot="icon"
/>
- <%= gettext("Cover") %>
+ {gettext("Cover")}
<.link phx-click={JS.push("refresh_musicbrainz_data", value: %{id: @record.id})}>
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
- <%= gettext("Refresh") %>
+ {gettext("Refresh")}
<.icon
name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true"
data-slot="icon"
/>
- <%= gettext("MB Data") %>
+ {gettext("MB Data")}
<.link
@@ -64,7 +64,7 @@
type="button"
class="relative -ml-px inline-flex items-center rounded-l-none !text-red-600 hover:!text-red-500 dark:!text-red-700 hover:dark:!text-red-500"
>
- <%= gettext("Delete") %>
+ {gettext("Delete")}
@@ -74,7 +74,7 @@
- <%= gettext("Genres") %>
+ {gettext("Genres")}
<.link
@@ -82,23 +82,23 @@
class="mr-2 text-zinc-700 hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-zinc-300"
patch={~p"/collection?#{%{query: ~s(genre:"#{genre}")}}"}
>
- <%= genre %>
+ {genre}
- <%= gettext("MusicBrainz ID") %>
+ {gettext("MusicBrainz ID")}
- <%= @record.musicbrainz_id %>
+ {@record.musicbrainz_id}
@record.musicbrainz_id)
|> JS.transition("animate-shake")
}>
- <%= gettext("Copy MusicBrainz ID to clipboard") %>
+ {gettext("Copy MusicBrainz ID to clipboard")}
<.icon
name="hero-clipboard-document"
class="-mt-1 h-5 w-5"
@@ -110,10 +110,10 @@
- <%= gettext("Purchased on") %>
+ {gettext("Purchased on")}
- <%= human_datetime(@record.purchased_at) %>
+ {human_datetime(@record.purchased_at)}
- <%= gettext("Includes") %>
+ {gettext("Includes")}
- <%= child_release_group.artists %> - <%= child_release_group.title %>
+ {child_release_group.artists} - {child_release_group.title}
- <%= gettext("Inserted at") %>
+ {gettext("Inserted at")}
- <%= human_datetime(@record.inserted_at) %>
+ {human_datetime(@record.inserted_at)}
- <%= gettext("Updated at") %>
+ {gettext("Updated at")}
- <%= human_datetime(@record.updated_at) %>
+ {human_datetime(@record.updated_at)}
@@ -152,13 +152,13 @@
- <%= gettext("MusicBrainz data") %>
+ {gettext("MusicBrainz data")}
<%= Jason.encode!(@record.musicbrainz_data, pretty: true) %>
<.back navigate={@back_url}>
- <%= gettext("Back to records") %>
+ {gettext("Back to records")}
diff --git a/lib/music_library_web/live/record_live/form_component.ex b/lib/music_library_web/live/record_live/form_component.ex
index d2a365c7..fad5b4e4 100644
--- a/lib/music_library_web/live/record_live/form_component.ex
+++ b/lib/music_library_web/live/record_live/form_component.ex
@@ -17,7 +17,7 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
- <%= @title %>
+ {@title}
@@ -54,16 +54,16 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
/>
<.label for={@uploads.cover_data.ref}>
- <%= gettext("Cover art") %>
+ {gettext("Cover art")}
- <%= gettext("No cover selected") %>
+ {gettext("No cover selected")}
<%= for entry <- @uploads.cover_data.entries do %>
- <%= entry.progress %>%
+ {entry.progress}%
<% end %>
<.live_file_input
class="mt-2 block w-full rounded-lg text-zinc-900 dark:text-zinc-200 focus:ring-0 sm:text-sm sm:leading-6"
@@ -71,7 +71,7 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
/>
<:actions>
- <.button phx-disable-with={gettext("Saving...")}><%= gettext("Save") %>
+ <.button phx-disable-with={gettext("Saving...")}>{gettext("Save")}
diff --git a/lib/music_library_web/live/record_live/import_component.ex b/lib/music_library_web/live/record_live/import_component.ex
index 76ed9f54..01c7136e 100644
--- a/lib/music_library_web/live/record_live/import_component.ex
+++ b/lib/music_library_web/live/record_live/import_component.ex
@@ -42,7 +42,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do
:if={@release_groups == []}
class="flex items-center justify-center h-32 text-md text-zinc-500"
>
- <%= gettext("No results") %>
+ {gettext("No results")}