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

_test_button.html.haml « web_hooks « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ffa45f01be1ae85516fbf261e6b834a6235209c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- button_class = local_assigns.fetch(:button_class, '')
- hook = local_assigns.fetch(:hook)
- triggers = hook.class.triggers

.hook-test-button.dropdown.gl-new-dropdown.inline>
  %button.btn.gl-button{ 'data-toggle' => 'dropdown', class: button_class }
    = _('Test')
    = sprite_icon('chevron-down')
  %ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
    .gl-new-dropdown-inner
      - triggers.each_value do |event|
        %li.gl-new-dropdown-item
          = link_to_test_hook(hook, event)