diff --git a/lib/sentrypeer/emails/templates/emails/layout.html.heex b/lib/sentrypeer/emails/templates/emails/layout.html.heex
index e6424694..4298eb5a 100644
--- a/lib/sentrypeer/emails/templates/emails/layout.html.heex
+++ b/lib/sentrypeer/emails/templates/emails/layout.html.heex
@@ -3,7 +3,7 @@
- <%= assigns[:title] %>
+ {assigns[:title]}
@@ -17,7 +17,7 @@
- <%= @inner_content %>
+ {@inner_content}
@@ -25,7 +25,7 @@
- Copyright <%= DateTime.utc_now().year %>. All rights reserved.
+ Copyright {DateTime.utc_now().year}. All rights reserved.
diff --git a/lib/sentrypeer_web/components/core_components.ex b/lib/sentrypeer_web/components/core_components.ex
index 1a398fb5..1da71bd7 100644
--- a/lib/sentrypeer_web/components/core_components.ex
+++ b/lib/sentrypeer_web/components/core_components.ex
@@ -111,18 +111,18 @@ defmodule SentrypeerWeb.CoreComponents do
id={"#{@id}-title"}
class="text-lg font-medium leading-6 dark:text-white text-gray-900"
>
- <%= render_slot(@title) %>
+ {render_slot(@title)}
- <%= render_slot(@subtitle) %>
+ {render_slot(@subtitle)}
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
@@ -140,14 +140,14 @@ defmodule SentrypeerWeb.CoreComponents do
phx-disable-with
class="inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm"
>
- <%= render_slot(confirm) %>
+ {render_slot(confirm)}
<.link
:for={cancel <- @cancel}
phx-click={hide_modal(@on_cancel, @id)}
class="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white dark:hover:bg-slate-500 dark:bg-slate-400 px-4 py-2 text-base font-medium dark:text-slate-800 text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
>
- <%= render_slot(cancel) %>
+ {render_slot(cancel)}
@@ -235,17 +235,17 @@ defmodule SentrypeerWeb.CoreComponents do
id={"#{@id}-title"}
class="text-lg font-semibold leading-8 text-zinc-800 dark:text-white"
>
- <%= render_slot(@title) %>
+ {render_slot(@title)}
- <%= render_slot(@subtitle) %>
+ {render_slot(@subtitle)}
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
<.button
:for={confirm <- @confirm}
@@ -254,14 +254,14 @@ defmodule SentrypeerWeb.CoreComponents do
phx-disable-with
class="py-2 px-3"
>
- <%= render_slot(confirm) %>
+ {render_slot(confirm)}
<.link
:for={cancel <- @cancel}
phx-click={hide_modal(@on_cancel, @id)}
class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
- <%= render_slot(cancel) %>
+ {render_slot(cancel)}
@@ -309,9 +309,9 @@ defmodule SentrypeerWeb.CoreComponents do
<.icon :if={@kind == :info} name="hero-information-circle" class="w-6 h-6" />
<.icon :if={@kind == :error} name="hero-exclamation-circle" class="w-6 h-6" />
- <%= @title %>
+ {@title}
- <%= msg %>
+ {msg}
- <%= render_slot(@inner_block, f) %>
+ {render_slot(@inner_block, f)}
- <%= render_slot(action, f) %>
+ {render_slot(action, f)}
@@ -412,7 +412,7 @@ defmodule SentrypeerWeb.CoreComponents do
]}
{@rest}
>
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -476,9 +476,9 @@ defmodule SentrypeerWeb.CoreComponents do
class="rounded border-zinc-300 text-zinc-900 dark:text-slate-400 focus:ring-zinc-900"
{@rest}
/>
- <%= @label %>
+ {@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -486,7 +486,7 @@ defmodule SentrypeerWeb.CoreComponents do
def input(%{type: "select"} = assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <%= @prompt %>
- <%= Phoenix.HTML.Form.options_for_select(@options, @value) %>
+ {@prompt}
+ {Phoenix.HTML.Form.options_for_select(@options, @value)}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -505,7 +505,7 @@ defmodule SentrypeerWeb.CoreComponents do
def input(%{type: "textarea"} = assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -526,7 +526,7 @@ defmodule SentrypeerWeb.CoreComponents do
def input(assigns) do
~H"""
- <.label for={@id}><%= @label %>
+ <.label for={@id}>{@label}
- <.error :for={msg <- @errors}><%= msg %>
+ <.error :for={msg <- @errors}>{msg}
"""
end
@@ -555,7 +555,7 @@ defmodule SentrypeerWeb.CoreComponents do
def label(assigns) do
~H"""
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -569,7 +569,7 @@ defmodule SentrypeerWeb.CoreComponents do
~H"""
<.icon name="hero-exclamation-circle-mini" class="mt-0.5 w-5 h-5 flex-none" />
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
end
@@ -588,13 +588,13 @@ defmodule SentrypeerWeb.CoreComponents do
"""
end
@@ -635,8 +635,8 @@ defmodule SentrypeerWeb.CoreComponents do
- <%= col[:label] %>
- <%= gettext("Actions") %>
+ {col[:label]}
+ {gettext("Actions")}
- <%= render_slot(col, @row_item.(row)) %>
+ {render_slot(col, @row_item.(row))}
@@ -664,7 +664,7 @@ defmodule SentrypeerWeb.CoreComponents do
:for={action <- @action}
class="relative ml-4 font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
- <%= render_slot(action, @row_item.(row)) %>
+ {render_slot(action, @row_item.(row))}
@@ -694,8 +694,8 @@ defmodule SentrypeerWeb.CoreComponents do
-
<%= item.title %>
- <%= render_slot(item) %>
+ {item.title}
+ {render_slot(item)}
@@ -720,7 +720,7 @@ defmodule SentrypeerWeb.CoreComponents do
class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
<.icon name="hero-arrow-left-solid" class="w-3 h-3" />
- <%= render_slot(@inner_block) %>
+ {render_slot(@inner_block)}
"""
diff --git a/lib/sentrypeer_web/components/home_page_components.ex b/lib/sentrypeer_web/components/home_page_components.ex
index e723ffd9..d87fe1cc 100644
--- a/lib/sentrypeer_web/components/home_page_components.ex
+++ b/lib/sentrypeer_web/components/home_page_components.ex
@@ -648,7 +648,7 @@ defmodule SentrypeerWeb.HomePageComponents do
>
Ant Networks Ltd.
- <%= DateTime.utc_now().year %>. SentryPeer is a trading name of
+ {DateTime.utc_now().year}. SentryPeer is a trading name of
-<%= @inner_content %>
+{@inner_content}
diff --git a/lib/sentrypeer_web/components/layouts/liveview_root.html.heex b/lib/sentrypeer_web/components/layouts/liveview_root.html.heex
index 34b93fce..113cbd6c 100644
--- a/lib/sentrypeer_web/components/layouts/liveview_root.html.heex
+++ b/lib/sentrypeer_web/components/layouts/liveview_root.html.heex
@@ -8,7 +8,7 @@
<.live_title>
- <%= assigns[:page_title] <> " · SentryPeer" %>
+ {assigns[:page_title] <> " · SentryPeer"}
@@ -29,7 +29,7 @@
- <%= @inner_content %>
+ {@inner_content}
<.live_title>
- <%= assigns[:page_title] <> " · SentryPeer" %>
+ {assigns[:page_title] <> " · SentryPeer"}
@@ -51,7 +51,7 @@
- <%= @inner_content %>
+ {@inner_content}