Skip to content

Commit

Permalink
'Verification sent' page updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpslav committed Dec 15, 2015
1 parent b5ccef7 commit ebd6a64
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions app/views/static_pages/verification_sent.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
<%= page_heading 'Verification sent' %>
<%= page_heading 'Check your inbox to verify your email address.' %>

<p>A verification email has been sent to <%= current_user.email_addresses.first.try(:value) %>. If you don't see the message in your inbox, check your junk or spam folder.</p>
<style type='text/css'>
ol li { margin: 10px 0; }
input[type='submit'] { margin: 10px 0 30px 40px; }
</style>

<p><%= link_to 'Resend Verification',
resend_confirmation_contact_info_path(current_user.email_addresses.first),
method: :put %></p>
<% flash[:alert] = "We haven't seen that you clicked the verification link. Please try again." \
if request.referrer == request.original_url %>

<ol>
<li>Find the email we sent to <%= current_user.email_addresses.first.try(:value) %>.</li>
<li>Click the link in it.</li>
<li>Return here and click the button below.</li>
</ol>

<br />
<br />
<br />
<p>Return to this page after you've verified your email address to continue your registration.</p>
<p><%= button_to 'Continue',
<p><%= button_to 'I clicked the link in the verification email',
stored_url,
class: 'standard' %></p>

<p style="margin: 80px 0 0 0">
Can't find the email? Try checking your junk of spam folder, or
<%= link_to 'click here to <b>resend</b> the verification email'.html_safe,
resend_confirmation_contact_info_path(current_user.email_addresses.first),
method: :put %>.
</p>

0 comments on commit ebd6a64

Please sign in to comment.