diff --git a/lib/mindwendel_web/components/core_components.ex b/lib/mindwendel_web/components/core_components.ex index e66c1b7f..06f354d8 100644 --- a/lib/mindwendel_web/components/core_components.ex +++ b/lib/mindwendel_web/components/core_components.ex @@ -62,7 +62,7 @@ defmodule MindwendelWeb.CoreComponents do phx-key="escape" > @@ -120,9 +120,9 @@ defmodule MindwendelWeb.CoreComponents do

<.icon :if={@kind == :info} name="hero-information-circle-mini" class="h-4 w-4" /> <.icon :if={@kind == :error} name="hero-exclamation-circle-mini" class="h-4 w-4" /> - <%= @title %> + {@title}

-

<%= msg %>

+

{msg}

@@ -153,7 +153,7 @@ defmodule MindwendelWeb.CoreComponents do phx-connected={hide("#client-error")} hidden > - <%= gettext("Attempting to reconnect") %> + {gettext("Attempting to reconnect")} <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 animate-spin" /> @@ -165,7 +165,7 @@ defmodule MindwendelWeb.CoreComponents do phx-connected={hide("#server-error")} hidden > - <%= gettext("Hang in there while we get back on track") %> + {gettext("Hang in there while we get back on track")} <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 animate-spin" /> @@ -198,9 +198,9 @@ defmodule MindwendelWeb.CoreComponents do def simple_form(assigns) do ~H""" <.form :let={f} for={@for} as={@as} {@rest}> - <%= render_slot(@inner_block, f) %> + {render_slot(@inner_block, f)}
- <%= render_slot(action, f) %> + {render_slot(action, f)}
""" @@ -231,7 +231,7 @@ defmodule MindwendelWeb.CoreComponents do ]} {@rest} > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -329,9 +329,9 @@ defmodule MindwendelWeb.CoreComponents do class="form-check-input" {@rest} /> - <%= @label %> + {@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg} """ end @@ -339,12 +339,12 @@ defmodule MindwendelWeb.CoreComponents do def input(%{type: "select"} = assigns) do ~H"""
- <.label for={@id}><%= @label %> + <.label for={@id}>{@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg}
""" end @@ -378,7 +378,7 @@ defmodule MindwendelWeb.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 @@ -413,7 +413,7 @@ defmodule MindwendelWeb.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 @@ -444,7 +444,7 @@ defmodule MindwendelWeb.CoreComponents do def label(assigns) do ~H""" """ end @@ -457,7 +457,7 @@ defmodule MindwendelWeb.CoreComponents do def error(assigns) do ~H"""
- <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}
""" end @@ -476,13 +476,13 @@ defmodule MindwendelWeb.CoreComponents do

- <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}

- <%= render_slot(@subtitle) %> + {render_slot(@subtitle)}

-
<%= render_slot(@actions) %>
+
{render_slot(@actions)}
""" end @@ -523,9 +523,9 @@ defmodule MindwendelWeb.CoreComponents do - + @@ -543,7 +543,7 @@ defmodule MindwendelWeb.CoreComponents do
- <%= render_slot(col, @row_item.(row)) %> + {render_slot(col, @row_item.(row))}
@@ -554,7 +554,7 @@ defmodule MindwendelWeb.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))} @@ -584,8 +584,8 @@ defmodule MindwendelWeb.CoreComponents do
-
<%= item.title %>
-
<%= render_slot(item) %>
+
{item.title}
+
{render_slot(item)}
@@ -607,7 +607,7 @@ defmodule MindwendelWeb.CoreComponents do
<.link navigate={@navigate}> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}
""" @@ -731,7 +731,7 @@ defmodule MindwendelWeb.CoreComponents do @lane_count > 3 && "col-12 col-md-3", @class ]}> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -768,7 +768,7 @@ defmodule MindwendelWeb.CoreComponents do phx-value-id={@label_id} {@rest} > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ diff --git a/lib/mindwendel_web/controllers/admin/brainstorming_html/export.html.heex b/lib/mindwendel_web/controllers/admin/brainstorming_html/export.html.heex index 5c735e4d..a246e875 100644 --- a/lib/mindwendel_web/controllers/admin/brainstorming_html/export.html.heex +++ b/lib/mindwendel_web/controllers/admin/brainstorming_html/export.html.heex @@ -1,6 +1,6 @@ <%= for idea <- @ideas do %> - <%= idea.body %>
- <%= gettext("By") %> <%= Gettext.gettext(MindwendelWeb.Gettext, idea.username) %>, <%= Likes.count_likes_for_idea( + {idea.body}
+ {gettext("By")} {Gettext.gettext(MindwendelWeb.Gettext, idea.username)}, {Likes.count_likes_for_idea( idea - ) %> likes

+ )} likes

<% end %> diff --git a/lib/mindwendel_web/controllers/static_page_html/home.html.heex b/lib/mindwendel_web/controllers/static_page_html/home.html.heex index 2507c801..8e3d2a68 100644 --- a/lib/mindwendel_web/controllers/static_page_html/home.html.heex +++ b/lib/mindwendel_web/controllers/static_page_html/home.html.heex @@ -12,9 +12,9 @@

- <%= gettext("Create a challenge.") %>
- <%= gettext("Ready?") %>
- <%= gettext("Brainstorm") %>
+ {gettext("Create a challenge.")}
+ {gettext("Ready?")}
+ {gettext("Brainstorm")}

@@ -29,17 +29,17 @@ required /> <.button type="submit" class="btn btn-primary fw-bold"> - <%= gettext("Create!") %> + {gettext("Create!")}
- <%= gettext("Brainstormings will be deleted after %{days} days.", + {gettext("Brainstormings will be deleted after %{days} days.", days: Application.fetch_env!(:mindwendel, :options)[ :feature_brainstorming_removal_after_days ] - ) %> + )} @@ -47,22 +47,22 @@ <%= if @current_user && !Enum.empty?(@current_user.brainstormings) do %>
-

<%= gettext("Your latest brainstormings") %>

+

{gettext("Your latest brainstormings")}

<%= for brainstorming <- list_brainstormings_for(@current_user) do %>
<.link href={~p"/brainstormings/#{brainstorming.id}"}> - <%= brainstorming.name %> + {brainstorming.name} - <%= Timex.format!(brainstorming.inserted_at, "{relative}", :relative) %> + {Timex.format!(brainstorming.inserted_at, "{relative}", :relative)}
<% end %>

- <%= gettext( + {gettext( "Attention: Brainstormings will be deleted %{available_until} after last access!", available_until: brainstormings_available_until() - ) %> + )}

@@ -72,8 +72,8 @@ Made with ❤️ in the 🇪🇺 <%= if Mindwendel.FeatureFlag.enabled?(:feature_privacy_imprint_enabled) do %>
- <.link href={~p"/legal"}><%= gettext("Legal Disclosure") %> - | <.link href={~p"/privacy"}><%= gettext("Privacy") %> + <.link href={~p"/legal"}>{gettext("Legal Disclosure")} + | <.link href={~p"/privacy"}>{gettext("Privacy")} <% end %> diff --git a/lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex b/lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex index d1509796..d83e5e06 100644 --- a/lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex +++ b/lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex @@ -1,26 +1,26 @@

- <%= gettext("Administration for brainstorming: %{name}", name: @brainstorming.name) %> + {gettext("Administration for brainstorming: %{name}", name: @brainstorming.name)}

<.link href={~p"/brainstormings/#{@brainstorming.id}/##{@brainstorming.admin_url_id}"}> - <%= gettext("Proceed to your brainstorming") %> + {gettext("Proceed to your brainstorming")}

- (<%= brainstorming_available_until_full_text(@brainstorming) %>) + ({brainstorming_available_until_full_text(@brainstorming)})

-

<%= gettext("Edit Brainstorming") %>

+

{gettext("Edit Brainstorming")}

<.simple_form for={@form} phx-submit="save" phx-change="save" id="form-edit-brainstorming"> @@ -39,7 +39,7 @@
-

<%= gettext("Edit Brainstorming Labels") %>

+

{gettext("Edit Brainstorming Labels")}

<.simple_form id="form-labels" for={@form} phx-change="save" phx-submit="save"> @@ -66,10 +66,10 @@ value={f_label.data.id} class="btn-outline-secondary" > - <%= gettext("Remove idea label") %> + {gettext("Remove idea label")} <.error :for={msg <- Enum.map(f_label[:name].errors, &translate_error(&1))}> - <%= msg %> + {msg}
@@ -78,7 +78,7 @@
<.button type="button" class="btn btn-secondary" phx-click="add_idea_label"> - <%= gettext("Add idea label") %> + {gettext("Add idea label")}
@@ -88,33 +88,33 @@
-

<%= gettext("Export") %>

+

{gettext("Export")}

<.link class="fw-bold" href={~p"/admin/brainstormings/#{@brainstorming.admin_url_id}/export?#{[_format: "csv"]}"} > - <%= gettext("Export to CSV") %> + {gettext("Export to CSV")}
<.link class="fw-bold" href={~p"/admin/brainstormings/#{@brainstorming.admin_url_id}/export"}> - <%= gettext("Export to HTML") %> + {gettext("Export to HTML")}
-

<%= gettext("Empty brainstorming") %>

+

{gettext("Empty brainstorming")}

- <%= gettext( + {gettext( "Attention: This will delete all ideas in this brainstorming. The brainstorming itself and labels will be left unchanged. This cant be undone." - ) %> + )}

@@ -131,15 +131,15 @@
-

<%= gettext("Delete Brainstorming") %>

+

{gettext("Delete Brainstorming")}

- <%= gettext( + {gettext( "Attention: This will delete the brainstorming with all belonging ideas and other associated records to it. This cant be undone" - ) %> + )}

<.link href={~p"/admin/brainstormings/#{@brainstorming.admin_url_id}"} @@ -147,7 +147,7 @@ method="delete" > <.button class="btn btn-danger"> - <%= gettext("Delete") %> + {gettext("Delete")}
diff --git a/lib/mindwendel_web/live/brainstorming_live/share_component.html.heex b/lib/mindwendel_web/live/brainstorming_live/share_component.html.heex index 2f8a9568..ffac7ac5 100644 --- a/lib/mindwendel_web/live/brainstorming_live/share_component.html.heex +++ b/lib/mindwendel_web/live/brainstorming_live/share_component.html.heex @@ -17,7 +17,7 @@ phx-hook="CopyBrainstormingLinkButton" type="button" > - <%= gettext("Copy") %> + {gettext("Copy")}
diff --git a/lib/mindwendel_web/live/brainstorming_live/show.html.heex b/lib/mindwendel_web/live/brainstorming_live/show.html.heex index 8ef0e298..c88bbc13 100644 --- a/lib/mindwendel_web/live/brainstorming_live/show.html.heex +++ b/lib/mindwendel_web/live/brainstorming_live/show.html.heex @@ -1,11 +1,11 @@ <%= if @inspiration do %>

- <%= @inspiration.title %> + {@inspiration.title}

<% end %> @@ -14,7 +14,7 @@
-

<%= @brainstorming.name %>

+

{@brainstorming.name}

@@ -25,7 +25,7 @@ class="btn btn-primary m-1 d-inline-flex align-items-center" title={gettext("New lane")} > - <%= gettext("New lane") %> + {gettext("New lane")} <% end %> @@ -53,7 +53,7 @@ data-bs-custom-class="deletion-date-hint-tooltip" data-bs-title={brainstorming_available_until_full_text(@brainstorming)} > - <%= brainstorming_available_until(@brainstorming) %> + {brainstorming_available_until(@brainstorming)}
diff --git a/lib/mindwendel_web/live/comment_live/form_component.html.heex b/lib/mindwendel_web/live/comment_live/form_component.html.heex index 8638ae3d..185ff985 100644 --- a/lib/mindwendel_web/live/comment_live/form_component.html.heex +++ b/lib/mindwendel_web/live/comment_live/form_component.html.heex @@ -33,10 +33,10 @@ class="btn btn-secondary form-cancel me-2" title={gettext("Close")} > - <%= gettext("Close") %> + {gettext("Close")} <.button class="btn-primary" phx-disable-with={gettext("Saving...")}> - <%= gettext("Save") %> + {gettext("Save")} diff --git a/lib/mindwendel_web/live/comment_live/show_component.html.heex b/lib/mindwendel_web/live/comment_live/show_component.html.heex index 02246ed8..fb6937f0 100644 --- a/lib/mindwendel_web/live/comment_live/show_component.html.heex +++ b/lib/mindwendel_web/live/comment_live/show_component.html.heex @@ -33,15 +33,15 @@ <% end %>
- <%= @comment.body %> + {@comment.body} <% end %> diff --git a/lib/mindwendel_web/live/idea_live/card_component.html.heex b/lib/mindwendel_web/live/idea_live/card_component.html.heex index d7ad6cc5..3518257c 100644 --- a/lib/mindwendel_web/live/idea_live/card_component.html.heex +++ b/lib/mindwendel_web/live/idea_live/card_component.html.heex @@ -43,17 +43,17 @@ data-color={idea_label.color} phx-hook="SetIdeaLabelBackgroundColor" > - <%= idea_label.name %> + {idea_label.name} <% end %> <%= unless @idea.link do %> -

<%= raw(@idea.body) %>

+

{raw(@idea.body)}

<% end %> <%= if @idea.link do %> <.link href={@idea.link.url}> - <%= raw(@idea.body) %> + {raw(@idea.body)}
@@ -61,8 +61,8 @@
-

<%= @idea.link.title %>

-

<%= @idea.link.description %>

+

{@idea.link.title}

+

{@idea.link.description}

<% end %> @@ -72,7 +72,7 @@

<.file_icon type={Attachments.simplified_attached_file_type(attachment.file_type)} /> <.link href={~p"/files/#{attachment.id}"}> - <%= attachment.name || gettext("No filename") %> + {attachment.name || gettext("No filename")}

<% end %> @@ -82,11 +82,11 @@
<%= col[:label] %>{col[:label]} - <%= gettext("Actions") %> + {gettext("Actions")}