From 4ad1c4cb86896668c7e60a472f20e534d3aea249 Mon Sep 17 00:00:00 2001 From: ricola Date: Thu, 4 Dec 2025 01:46:23 +0100 Subject: [PATCH] Use

consistently for form alerts --- views/signup.erb | 4 ++-- views/votes_edit.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views/signup.erb b/views/signup.erb index ccc76d9..1316fb6 100644 --- a/views/signup.erb +++ b/views/signup.erb @@ -11,10 +11,10 @@ <% if @user and @user.errors.any? %> <% @user.errors.each do |error| %> <% if error.attribute == :email and error.type == :invalid %> -

<%= _("Email is not a valid email address.") %>
+

<%= _("Email is not a valid email address.") %>

<% end %> <% if error.attribute == :email and error.type == :taken %> -
<%= _("An account already exists for %{email}.") % { email: @user.email } %>
+

<%= _("An account already exists for %{email}.") % { email: @user.email } %>

<% end %> <% end %> <% end %> diff --git a/views/votes_edit.erb b/views/votes_edit.erb index 89585f0..c631804 100644 --- a/views/votes_edit.erb +++ b/views/votes_edit.erb @@ -38,7 +38,7 @@

<%= _("Add candidate") %>

<% if @vote.candidates.empty? %> -
<%= _("This vote has no candidates yet. Add a first candidate.") %>
+

<%= _("This vote has no candidates yet. Add a first candidate.") %>

<% end %>