Merge pull request #1089 from internetee/add-clarifying-comment

Add clarifying comment
This commit is contained in:
Timo Võhmar 2019-02-27 20:03:00 +02:00 committed by GitHub
commit 6a67ea419f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
<% display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none' %> <% display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none' %>
<div id="flash" style="display: <%= display %>;"> <div id="flash" style="display: <%= display %>;">
<!-- Used by Mobile-ID login -->
<% type = (flash[:notice]) ? 'bg-success' : 'bg-danger' %> <% type = (flash[:notice]) ? 'bg-success' : 'bg-danger' %>
<% type = 'bg-warning' if flash[:warning] %> <% type = 'bg-warning' if flash[:warning] %>
<div class="<%= type %> alert"> <div class="<%= type %> alert">