summaryrefslogtreecommitdiff
path: root/app/views/shared/web_hooks/_test_button.html.haml
blob: fc24e425ab6d66fb54c014b1bbad2291461fbc1c (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{ 'data-toggle' => 'dropdown', class: button_class }
    = _('Test')
    = icon('caret-down')
  %ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
    - triggers.each_value do |event|
      %li
        = link_to_test_hook(hook, event)