docbrown/app/views/devise/shared/_authorization_error.html.erb
Mohab Abd El-Dayem 2c80e9da42 Make The Default Email An Enviroment Variable. (#4677)
* Make the default email an enviroment variable

* Added spaces in Envfile for readability
2019-11-01 09:03:06 -04:00

30 lines
747 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:<%= ApplicationConfig["DEFAULT_SITE_EMAIL"] %>"><%= ApplicationConfig["DEFAULT_SITE_EMAIL"] %></a> if this persists.
</div>
<% end %>