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

_project_feature_toggle.html.haml « buttons « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 321fbee1b35830201069137c2acb174010832cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- class_list ||= "js-project-feature-toggle project-feature-toggle"
- data ||= nil
- disabled ||= false
- is_checked ||= false
- label ||= nil

%button{ type: 'button',
         class: "#{class_list} #{'is-disabled' if disabled} #{'is-checked' if is_checked}",
         "aria-label": label,
         disabled: disabled,
         data: data }
  - if yield.present?
    = yield
  %span.toggle-icon
    = sprite_icon('status_success_borderless', size: 18, css_class: 'gl-text-blue-500 toggle-status-checked')
    = sprite_icon('status_failed_borderless', size: 18, css_class: 'gl-text-gray-400 toggle-status-unchecked')