ed3fcdd09b
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/40671
See
f7254a4060/app/controllers/sessions_controller.rb (L42)
for an example of where we set `flash[:notice] = nil`
8 lines
300 B
Text
8 lines
300 B
Text
.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) }
|
|
%span= value
|