File: settings_block_component.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (16 lines) | stat: -rw-r--r-- 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%section{ class: section_classes, id: @id, data: (@testid ? { testid: @testid } : {}) }
  - if callout?
    = callout
  .gl-flex.gl-justify-between.gl-items-start.gl-gap-x-3.gl-pt-5
    .gl-shrink-0.gl-px-2.gl-py-0.-gl-mr-3.sm:gl-p-2.sm:gl-mr-0
      = render Pajamas::ButtonComponent.new(category: :tertiary, size: :small, icon: 'chevron-lg-right', icon_classes: '!-gl-mx-2', button_text_classes: 'gl-sr-only', button_options: @button_options.merge(class: 'settings-toggle js-settings-toggle', 'aria-label': aria_label)) do
        = button_text
    .gl-grow
      %h2{ class: title_classes }
        = heading || @heading
      - if description || @description
        %p.gl-text-subtle.gl-m-0
          = description || @description
  .settings-content
    .gl-pl-7.sm:gl-pl-8.gl-mt-5
      = body