debian-mirror-gitlab/app/views/shared/_flash_user_callout.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
690 B
Text
Raw Normal View History

2022-01-26 12:08:38 +05:30
- callout_data = { uid: "callout_feature_#{feature_name}_dismissed", feature_id: feature_name, dismiss_endpoint: callouts_path }
2019-02-15 15:39:39 +05:30
- 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}" }
2023-01-13 00:05:48 +05:30
%div{ class: "#{container_class unless fluid_layout} #{extra_flash_class unless @no_container} #{@content_class}" }
2019-02-15 15:39:39 +05:30
%span= message
2021-04-29 21:17:54 +05:30
%button.btn.gl-button.btn-default.close.js-close{ type: 'button',
2019-02-15 15:39:39 +05:30
'aria-label' => _('Dismiss') }
= sprite_icon('close', css_class: 'dismiss-icon')