openstreetmap-website/app/views/confirmations/confirm.html.erb
Andy Allan 2a885c2cce Ensure the heading text appears above the illustration
The easiest way to do this is to make the text a child of the div
with the background image. The change to min-size is so that if
the text wraps often enough on narrow screens, the header expands
vertically rather than the text spilling over.

Fixes #3259
2021-07-21 15:08:33 +01:00

32 lines
929 B
Text

<% content_for :heading_class, "pb-0" %>
<% content_for :heading do %>
<div class='header-illustration confirm-main'>
<h1><%= t ".heading" %></h1>
</div>
<% end %>
<% if params[:confirm_string] %>
<% content_for :head do %>
<%= javascript_include_tag "user" %>
<% end %>
<% content_for(:content_class) { "user_confirm" } %>
<p><%= t ".press confirm button" %></p>
<%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %>
<%= f.hidden_field :display_name, :value => params[:display_name] %>
<%= f.hidden_field :confirm_string, :value => params[:confirm_string] %>
<%= f.primary t(".button") %>
<% end %>
<% else %>
<h1>
<%= t ".introduction_1" %>
<span class="text-muted">
<%= t ".introduction_2" %>
</span>
</h1>
<p class='text-muted'><%= t ".reconfirm_html",
:reconfirm => url_for(:action => "confirm_resend") %></p>
<% end %>