mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
9 lines
454 B
Text
9 lines
454 B
Text
<% display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none' %>
|
|
<div id="flash" style="display: <%= display %>;">
|
|
<!-- Used by Mobile-ID login -->
|
|
<% type = (flash[:notice]) ? 'bg-success' : 'bg-danger' %>
|
|
<% type = 'bg-warning' if flash[:warning] %>
|
|
<div class="<%= type %> alert<%= ' alert-info' if flash[:notice].present? %>">
|
|
<%= flash[:notice] || flash[:alert] || flash[:warning] %>
|
|
</div>
|
|
</div>
|