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

24 lines
704 B
Text
Raw Normal View History

2022-07-23 23:45:48 +05:30
%section.gl-banner{ @banner_options, class: banner_class }
- if illustration?
.gl-banner-illustration
= illustration
- elsif @svg_path.present?
.gl-banner-illustration
= image_tag @svg_path, alt: ""
.gl-banner-content
%h1.gl-banner-title= title
= content
- if primary_action?
= primary_action
- else
= link_to @button_text, @button_link, { **@button_options, class: 'btn btn-md btn-confirm gl-button js-close-callout' }
- actions.each do |action|
= action
%button.gl-button.gl-banner-close.btn-sm.btn-icon.js-close{ @close_options, class: close_class, type: 'button' }
= sprite_icon('close', size: 16, css_class: 'dismiss-icon')