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:
@@ -4,28 +4,28 @@
|
||||
<div class="flex">
|
||||
<div class="flex space-x-4 md:space-x-8">
|
||||
<.link navigate={~p"/"} class={section_link_classes(assigns[:nav_section], :stats)}>
|
||||
<%= gettext("Stats") %>
|
||||
{gettext("Stats")}
|
||||
</.link>
|
||||
<.link
|
||||
navigate={~p"/collection"}
|
||||
class={section_link_classes(assigns[:nav_section], :records)}
|
||||
>
|
||||
<%= gettext("Collection") %>
|
||||
{gettext("Collection")}
|
||||
</.link>
|
||||
<.link
|
||||
navigate={~p"/wishlist"}
|
||||
class={section_link_classes(assigns[:nav_section], :wishlist)}
|
||||
>
|
||||
<%= gettext("Wishlist") %>
|
||||
{gettext("Wishlist")}
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex space-x-8">
|
||||
<a class={["max-sm:hidden" | nav_link_classes()]} } href={~p"/dev/dashboard"}>
|
||||
<%= gettext("Dev dashboard") %>
|
||||
{gettext("Dev dashboard")}
|
||||
</a>
|
||||
<a class={nav_link_classes()} } href={~p"/login"}>
|
||||
<%= gettext("Logout") %>
|
||||
{gettext("Logout")}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,6 +34,6 @@
|
||||
<main class="px-4 py-4 max-sm:pb-20 sm:px-6 lg:px-8">
|
||||
<div class="mx-auto max-w-screen-xl">
|
||||
<.flash_group flash={@flash} />
|
||||
<%= @inner_content %>
|
||||
{@inner_content}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="csrf-token" content={get_csrf_token()} />
|
||||
<.live_title suffix=" · Music Library">
|
||||
<%= assigns[:page_title] || assigns.conn.request_path %>
|
||||
{assigns[:page_title] || assigns.conn.request_path}
|
||||
</.live_title>
|
||||
<link rel="preconnect" href="https://rsms.me/" />
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
||||
@@ -35,7 +35,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-white dark:bg-zinc-900">
|
||||
<%= @inner_content %>
|
||||
{@inner_content}
|
||||
<footer class="mt-8 border-t border-slate-900/10 dark:border-slate-300/10">
|
||||
<div class="mx-auto max-w-7xl px-6 pb-8 lg:px-8">
|
||||
<div class="pt-8 flex items-center justify-between">
|
||||
@@ -55,7 +55,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<p class="text-sm/6 text-zinc-600 dark:text-zinc-400 order-1">
|
||||
<span><%= gettext("Made by") %></span>
|
||||
<span>{gettext("Made by")}</span>
|
||||
<a
|
||||
class="font-medium text-zinc-500 hover:border-zinc-300 hover:text-zinc-700 dark:text-zinc-300 dark:hover:text-zinc-200"
|
||||
href="https://claudio-ortolina.org"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<main class="px-4 py-8 max-sm:pb-20 sm:px-6 lg:px-8">
|
||||
<div class="mx-auto max-w-5xl">
|
||||
<.flash_group flash={@flash} />
|
||||
<%= @inner_content %>
|
||||
{@inner_content}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user