2017-07-20 15:12:06 +00:00
|
|
|
- button_class = local_assigns.fetch(:button_class, '')
|
|
|
|
- hook = local_assigns.fetch(:hook)
|
2019-12-16 09:08:10 +00:00
|
|
|
- triggers = hook.class.triggers
|
2017-07-20 15:12:06 +00:00
|
|
|
|
2019-12-16 09:08:10 +00:00
|
|
|
.hook-test-button.dropdown.inline>
|
2021-01-22 09:08:53 +00:00
|
|
|
%button.btn.gl-button{ 'data-toggle' => 'dropdown', class: button_class }
|
2019-12-16 09:08:10 +00:00
|
|
|
= _('Test')
|
2020-12-07 12:10:00 +00:00
|
|
|
= sprite_icon('chevron-down')
|
2018-04-17 17:18:41 +00:00
|
|
|
%ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
|
2017-07-20 15:12:06 +00:00
|
|
|
- triggers.each_value do |event|
|
|
|
|
%li
|
|
|
|
= link_to_test_hook(hook, event)
|