Welcome to mirror list, hosted at ThFree Co, Russian Federation.

banner_component.html.haml « pajamas « components « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a177edddb5bf99a83bbb31e71137a799f9893eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%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_button_to @button_text, @button_link, **@button_options, class: 'js-close-callout', variant: :confirm

    - actions.each do |action|
      = action

  = render Pajamas::ButtonComponent.new(category: :tertiary, variant: close_button_variant, size: :small, icon: 'close', button_options: @close_options)