2018-01-23 02:03:01 -05:00
|
|
|
- title = local_assigns.fetch(:title, _('Assign labels'))
|
2018-06-07 16:54:24 -04:00
|
|
|
- content_title = local_assigns.fetch(:content_title, _('Create lists from labels. Issues with that label appear in that list.'))
|
|
|
|
- show_title = local_assigns.fetch(:show_title, true)
|
2016-05-31 17:11:46 -04:00
|
|
|
- show_create = local_assigns.fetch(:show_create, true)
|
2016-05-05 17:57:35 -04:00
|
|
|
- show_footer = local_assigns.fetch(:show_footer, true)
|
2016-11-19 12:58:31 -05:00
|
|
|
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search')
|
2016-08-01 11:21:08 -04:00
|
|
|
- show_boards_content = local_assigns.fetch(:show_boards_content, false)
|
2018-03-08 07:40:04 -05:00
|
|
|
- subject = @project || @group
|
2016-04-18 15:56:02 -04:00
|
|
|
.dropdown-page-one
|
2018-06-07 16:54:24 -04:00
|
|
|
- if show_title
|
|
|
|
= dropdown_title(title)
|
2016-08-01 11:21:08 -04:00
|
|
|
- if show_boards_content
|
|
|
|
.issue-board-dropdown-content
|
2019-04-16 10:41:25 -04:00
|
|
|
%p.m-0
|
2018-06-07 16:54:24 -04:00
|
|
|
= content_title
|
2016-07-21 00:08:50 -04:00
|
|
|
= dropdown_filter(filter_placeholder)
|
2016-04-18 15:56:02 -04:00
|
|
|
= dropdown_content
|
2017-09-06 02:26:26 -04:00
|
|
|
- if current_board_parent && show_footer
|
2016-04-18 15:56:02 -04:00
|
|
|
= dropdown_footer do
|
|
|
|
%ul.dropdown-footer-list
|
2017-09-06 02:26:26 -04:00
|
|
|
- if can?(current_user, :admin_label, current_board_parent)
|
2016-04-18 15:56:02 -04:00
|
|
|
%li
|
2016-12-26 05:47:16 -05:00
|
|
|
%a.dropdown-toggle-page{ href: "#" }
|
2018-03-08 07:40:04 -05:00
|
|
|
= create_label_title(subject)
|
2016-04-18 15:56:02 -04:00
|
|
|
%li
|
2017-09-06 02:26:26 -04:00
|
|
|
= link_to labels_path, :"data-is-link" => true do
|
|
|
|
- if show_create && can?(current_user, :admin_label, current_board_parent)
|
2018-03-08 07:40:04 -05:00
|
|
|
= manage_labels_title(subject)
|
2016-04-18 15:56:02 -04:00
|
|
|
- else
|
2018-03-08 07:40:04 -05:00
|
|
|
= view_labels_title(subject)
|
2016-05-31 17:11:46 -04:00
|
|
|
= dropdown_loading
|