2021-12-10 13:14:42 -05:00
|
|
|
- callout_data = { uid: "callout_feature_#{feature_name}_dismissed", feature_id: feature_name, dismiss_endpoint: callouts_path }
|
2019-01-04 18:14:15 -05:00
|
|
|
- extra_flash_class = local_assigns.fetch(:extra_flash_class, nil)
|
|
|
|
|
|
|
|
.flash-container.flash-container-page.user-callout{ data: callout_data }
|
|
|
|
-# We currently only support `alert`, `warning`, `notice`, `success`
|
|
|
|
%div{ class: "flash-#{flash_type}" }
|
|
|
|
%div{ class: "#{(container_class unless fluid_layout)} #{(extra_flash_class unless @no_container)} #{@content_class}" }
|
|
|
|
%span= message
|
2021-04-01 11:08:54 -04:00
|
|
|
%button.btn.gl-button.btn-default.close.js-close{ type: 'button',
|
2019-01-04 18:14:15 -05:00
|
|
|
'aria-label' => _('Dismiss') }
|
|
|
|
= sprite_icon('close', css_class: 'dismiss-icon')
|