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: a683f75c7792030556da305c488086f4b6ef6dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- button_class = local_assigns.fetch(:button_class, '')
- hook = local_assigns.fetch(:hook)
- triggers = hook.class.triggers

.hook-test-button.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' }
    - triggers.each_value do |event|
      %li
        = link_to_test_hook(hook, event)