2018-03-17 18:26:18 +05:30
|
|
|
- title = local_assigns.fetch(:title, _('Assign labels'))
|
2016-06-16 23:09:34 +05:30
|
|
|
- show_create = local_assigns.fetch(:show_create, true)
|
|
|
|
- show_footer = local_assigns.fetch(:show_footer, true)
|
2017-08-17 22:00:37 +05:30
|
|
|
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search')
|
2016-09-13 17:45:13 +05:30
|
|
|
- show_boards_content = local_assigns.fetch(:show_boards_content, false)
|
2016-06-02 11:05:42 +05:30
|
|
|
.dropdown-page-one
|
|
|
|
= dropdown_title(title)
|
2016-09-13 17:45:13 +05:30
|
|
|
- if show_boards_content
|
|
|
|
.issue-board-dropdown-content
|
|
|
|
%p
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('Create lists from labels. Issues with that label appear in that list.')
|
2016-09-13 17:45:13 +05:30
|
|
|
= dropdown_filter(filter_placeholder)
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_content
|
2018-03-17 18:26:18 +05:30
|
|
|
- if current_board_parent && show_footer
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_footer do
|
|
|
|
%ul.dropdown-footer-list
|
2018-03-17 18:26:18 +05:30
|
|
|
- if can?(current_user, :admin_label, current_board_parent)
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
2017-08-17 22:00:37 +05:30
|
|
|
%a.dropdown-toggle-page{ href: "#" }
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('Create new label')
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
2018-03-17 18:26:18 +05:30
|
|
|
= link_to labels_path, :"data-is-link" => true do
|
|
|
|
- if show_create && can?(current_user, :admin_label, current_board_parent)
|
|
|
|
= _('Manage labels')
|
2016-06-02 11:05:42 +05:30
|
|
|
- else
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('View labels')
|
2016-06-16 23:09:34 +05:30
|
|
|
= dropdown_loading
|