]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/confirmations/confirm.html.erb
Rework confirmations page to avoid raw html in translations
[rails.git] / app / views / confirmations / confirm.html.erb
index fde54554662b797b12b49863ddc69a189539f92d..879fb8f337cebf45c1a4f15ff46efdd1d5c422a6 100644 (file)
@@ -1,6 +1,8 @@
+<% content_for :heading_class, "pb-0" %>
 <% content_for :heading do %>
-  <h1><%= t ".heading" %></h1>
-  <div class='header-illustration confirm-main'></div>
+  <div class='header-illustration confirm-main'>
+    <h1><%= t ".heading" %></h1>
+  </div>
 <% end %>
 
 <% if params[:confirm_string] %>
@@ -25,6 +27,8 @@
     </span>
   </h1>
 
-  <p class='text-muted'><%= t ".reconfirm_html",
-                              :reconfirm => url_for(:action => "confirm_resend") %></p>
+  <p class='text-muted'>
+    <%= t ".resend_html",
+          :reconfirm_link => link_to(t(".click_here"), url_for(:action => "confirm_resend")) %>
+  </p>
 <% end %>