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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
489 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- button_class = local_assigns.fetch(:button_class, '')
- hook = local_assigns.fetch(:hook)
2020-01-01 13:55:28 +05:30
- triggers = hook.class.triggers
2017-09-10 17:25:29 +05:30
2023-03-04 22:38:38 +05:30
.hook-test-button.dropdown.gl-dropdown.inline>
2021-03-11 19:13:27 +05:30
%button.btn.gl-button{ 'data-toggle' => 'dropdown', class: button_class }
2020-01-01 13:55:28 +05:30
= _('Test')
2021-02-22 17:27:13 +05:30
= sprite_icon('chevron-down')
2018-11-08 19:23:39 +05:30
%ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
2023-03-04 22:38:38 +05:30
.gl-dropdown-inner
2021-04-29 21:17:54 +05:30
- triggers.each_value do |event|
2023-03-04 22:38:38 +05:30
%li.gl-dropdown-item
2021-04-29 21:17:54 +05:30
= link_to_test_hook(hook, event)