2018-04-27 10:50:33 -04:00
|
|
|
- extra_flash_class = local_assigns.fetch(:extra_flash_class, nil)
|
|
|
|
|
2016-06-21 17:10:24 -04:00
|
|
|
.flash-container.flash-container-page
|
2017-11-20 11:40:01 -05:00
|
|
|
-# We currently only support `alert`, `notice`, `success`
|
|
|
|
- flash.each do |key, value|
|
2017-11-29 17:04:41 -05:00
|
|
|
-# Don't show a flash message if the message is nil
|
|
|
|
- if value
|
|
|
|
%div{ class: "flash-#{key}" }
|
2018-10-19 05:56:12 -04:00
|
|
|
%div{ class: "#{(container_class unless fluid_layout)} #{(extra_flash_class unless @no_container)} #{@content_class}" }
|
2017-11-29 17:04:41 -05:00
|
|
|
%span= value
|