debian-mirror-gitlab/app/views/shared/web_hooks/_test_button.html.haml

13 lines
415 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- triggers = local_assigns.fetch(:triggers)
- button_class = local_assigns.fetch(:button_class, '')
- hook = local_assigns.fetch(:hook)
.hook-test-button.dropdown.inline
%button.btn{ 'data-toggle' => 'dropdown', class: button_class }
Test
= icon('caret-down')
2018-11-08 19:23:39 +05:30
%ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
2017-09-10 17:25:29 +05:30
- triggers.each_value do |event|
%li
= link_to_test_hook(hook, event)