debian-mirror-gitlab/app/components/pajamas/alert_component.html.haml

19 lines
567 B
Text
Raw Normal View History

2022-07-23 23:45:48 +05:30
.gl-alert{ @alert_options, role: 'alert', class: base_class }
2022-07-16 23:28:13 +05:30
- if @show_icon
= sprite_icon(icon, css_class: icon_classes)
2022-06-21 17:19:12 +05:30
- if @dismissible
2022-07-23 23:45:48 +05:30
%button.btn.gl-dismiss-btn.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon.js-close{ @close_button_options,
type: 'button',
aria: { label: _('Dismiss') } }
2022-06-21 17:19:12 +05:30
= sprite_icon('close')
.gl-alert-content{ role: 'alert' }
- if @title
%h4.gl-alert-title
= @title
2022-07-16 23:28:13 +05:30
- if body?
.gl-alert-body
= body
- if actions?
.gl-alert-actions
= actions