debian-mirror-gitlab/app/views/layouts/_flash.html.haml
2018-10-15 14:42:47 +05:30

10 lines
392 B
Text

- extra_flash_class = local_assigns.fetch(:extra_flash_class, nil)
.flash-container.flash-container-page
-# 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-#{key}" }
%div{ class: "#{container_class} #{extra_flash_class}" }
%span= value