2018-04-25 13:32:49 +08:00
|
|
|
|
<div id="notifications">
|
|
|
|
|
<% if flash[:success] %>
|
|
|
|
|
<div id="alert-flash" class="alert alert-success alert-dismissable alert-floating">
|
2018-04-25 16:43:16 +08:00
|
|
|
|
<div>
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2018-07-09 19:13:44 +08:00
|
|
|
|
<span class="fas fa-check-circle"></span>
|
2018-04-25 13:32:49 +08:00
|
|
|
|
<span><%= sanitize_input(flash[:success]) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if notice %>
|
|
|
|
|
<div id="alert-flash" class="alert alert-info alert-dismissable alert-floating">
|
2018-04-25 16:43:16 +08:00
|
|
|
|
<div>
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2018-07-09 19:13:44 +08:00
|
|
|
|
<span class="fas fa-info-circle"></span>
|
2018-04-25 13:32:49 +08:00
|
|
|
|
<span><%= notice %></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if alert and !alert.empty? or flash[:error]%>
|
|
|
|
|
<div id="alert-flash" class="alert alert-danger alert-dismissable alert-floating">
|
2018-04-25 16:43:16 +08:00
|
|
|
|
<div>
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2018-07-09 19:13:44 +08:00
|
|
|
|
<span class="fas fa-exclamation-circle"></span>
|
2018-04-25 13:32:49 +08:00
|
|
|
|
<span><%= alert || sanitize_input(flash[:error]) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|