* Show a banner if the user is restricted because they signed up from a proxy or VPN. * Add an option to resend the confirmation email if your account has an unverified email address.
11 lines
532 B
Plaintext
11 lines
532 B
Plaintext
<% if CurrentUser.user.is_restricted? && (params[:controller] == "users" || cookies[:hide_verify_account_notice].blank?) %>
|
|
<div class="notice notice-info notice-large" id="verify-account-notice">
|
|
<h2>Your account is restricted.</h2>
|
|
<div>
|
|
You must verify your account because you signed up from a proxy or a VPN.
|
|
<%= link_to "Verify your account now", verify_user_email_path(CurrentUser.user) %>.
|
|
</div>
|
|
<div><%= link_to "Close this", "#", id: "hide-verify-account-notice" %></div>
|
|
</div>
|
|
<% end %>
|