debian-mirror-gitlab/app/views/layouts/_flash.html.haml
2019-12-21 20:55:43 +05:30

9 lines
412 B
Text

.flash-container.flash-container-page.sticky
-# We currently only support `alert`, `notice`, `success`
- flash.each do |key, value|
-# Don't show a flash message if the message is nil
- if value
%div{ class: "flash-content flash-#{key} rounded" }
%span= value
%div{ class: "close-icon-wrapper js-close-icon" }
= sprite_icon('close', size: 16, css_class: 'close-icon')