Upstream sync
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
<% if flash.alert.present? %>
|
||||
<div class="alert alert-danger text-center text-md-left"><%= flash.alert.html_safe %></div>
|
||||
<% elsif flash.notice.present? %>
|
||||
<div class="alert alert-primary text-center text-md-left"><%= flash.notice.html_safe %></div>
|
||||
<% end %>
|
||||
<!-- Wrapping element flash message-->
|
||||
<div class="position-relative" style="z-index: 9999;">
|
||||
<!-- Position toasts -->
|
||||
<div class="position-absolute" style="top: 0.5rem; right: 0.5rem;">
|
||||
<% if flash.alert.present? %>
|
||||
<div class="toast fade show bg-black text-white toast-min-w-border-radius" data-autohide="false">
|
||||
<div class="toast-body toast-border-left-danger">
|
||||
<button type="button" class="close text-white ml-2" data-dismiss="toast">×</button>
|
||||
<p><%= flash.alert.html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% elsif flash.notice.present? %>
|
||||
<div class="toast fade show bg-black text-white toast-min-w-border-radius" data-autohide="false">
|
||||
<div class="toast-body toast-border-left-primary">
|
||||
<button type="button" class="close text-white ml-2" data-dismiss="toast">×</button>
|
||||
<p><%= flash.notice.html_safe %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user