docbrown/app/views/devise/shared/_authorization_error.html.erb
Michael Kohl 728a05c476 Move from env variables to SiteConfig (#5385) [deploy]
* Move from env variables to SiteConfig

Related to #5384

This PR only deals with the first remaining part outlined in the issue, starting to use existing SiteConfig keys instead of the env variables.

* Restore Envfile to original version for now
2020-01-07 16:36:24 -05:00

30 lines
727 B
Text

<style>
.error-notice {
background: rgba(255, 80, 80, 0.7);
color: white;
padding: 40px 0px 40px;
text-align: center;
position: relative;
top: 60px;
left: 0px;
right: 0px;
}
</style>
<% unless flash[:alert].blank? %>
<div class="error-notice">
Something went wrong:
<% if flash[:alert].is_a?(Array) %>
<ul>
<% flash[:alert].each do |error| %>
<li>
<%= error %>
</li>
<% end %>
</ul>
<% else %>
<%= flash[:alert] %>
<br>
<% end %>
Please try again below, or contact <a href="mailto:<%= SiteConfig.default_site_email %>"><%= SiteConfig.default_site_email %></a> if this persists.
</div>
<% end %>