docbrown/app/views/devise/shared/_authorization_error.html.erb
Ben Halpern 1d62d30853
Consolidate and internationalize various 'contact us' prompts (#14951)
* Consolidate and internationalize various 'contact us' prompts

* Update spec/requests/user/user_settings_spec.rb

Co-authored-by: Michael Kohl <citizen428@forem.com>

Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-10-07 12:05:21 -04:00

25 lines
771 B
Text

<% unless flash[:alert].blank? %>
<div class="crayons-notice--danger registration__error-notice">
<% if flash[:alert].is_a?(Array) %>
Something went wrong:
<ul>
<% flash[:alert].each do |error| %>
<li>
<%= error %>
</li>
<% end %>
</ul>
<% else %>
<strong>
<%= flash[:alert] %>
</strong>
<br>
<% end %>
<% if any_enabled_auth_providers? %>
If you haven't created an account, we recommend signing up with social authentication below.
<% end %>
If you haven't received your confirmation email yet, <a href="<%= confirm_email_path %>">click here</a> to resend it.
<br>
<%= t("contact_prompts.if_continued_trouble_html") %>
</div>
<% end %>