docbrown/app/views/devise/shared/_authorization_error.html.erb

30 lines
656 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:yo@dev.to">yo@dev.to</a> if this persists.
</div>
<% end %>