gitlab-org--gitlab-foss/app/views/layouts/_flash.html.haml
Fatih Acet 3741402a24 Make flash notifications sticky
This commit also unifies layout structure
and remove no_container flag
2019-09-03 09:03:35 +00:00

8 lines
352 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
= sprite_icon('close', size: 16, css_class: 'close-icon')