docbrown/app/views/devise/shared/_authorization_error.html.erb
Jacob Herrington c37b283865
Allow Forem admins to enable an invite only mode. (#10758)
* Add invite only mode field to SiteConfig

* Add UI elements for invite only mode
2020-10-12 11:27:22 -04:00

23 lines
646 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 %>
Contact <%= email_link %> if you continue having trouble.
</div>
<% end %>