2018-10-15 14:42:47 +05:30
|
|
|
- extra_flash_class = local_assigns.fetch(:extra_flash_class, nil)
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
.flash-container.flash-container-page
|
2018-03-17 18:26:18 +05:30
|
|
|
-# 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}" }
|
2018-12-13 13:39:08 +05:30
|
|
|
%div{ class: "#{(container_class unless fluid_layout)} #{(extra_flash_class unless @no_container)} #{@content_class}" }
|
2018-03-17 18:26:18 +05:30
|
|
|
%span= value
|