Add clarifying comment

This commit is contained in:
Artur Beljajev 2019-02-26 16:05:57 +02:00
parent baa7beb51e
commit 1cacb76a7b

View file

@ -1,5 +1,6 @@
<% 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">