2016-04-18 15:56:02 -04:00
|
|
|
- title = local_assigns.fetch(:title, 'Assign labels')
|
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)
|
2016-04-18 15:56:02 -04:00
|
|
|
.dropdown-page-one
|
2016-08-01 11:21:08 -04:00
|
|
|
= dropdown_title(title)
|
|
|
|
- if show_boards_content
|
|
|
|
.issue-board-dropdown-content
|
|
|
|
%p
|
2016-11-19 12:58:31 -05:00
|
|
|
Create lists from the labels you use in your project. Issues with that
|
|
|
|
label will automatically be added to the list.
|
2016-07-21 00:08:50 -04:00
|
|
|
= dropdown_filter(filter_placeholder)
|
2016-04-18 15:56:02 -04:00
|
|
|
= dropdown_content
|
2016-05-31 17:33:18 -04:00
|
|
|
- if @project && show_footer
|
2016-04-18 15:56:02 -04:00
|
|
|
= dropdown_footer do
|
|
|
|
%ul.dropdown-footer-list
|
2016-05-31 17:11:46 -04:00
|
|
|
- if can?(current_user, :admin_label, @project)
|
2016-04-18 15:56:02 -04:00
|
|
|
%li
|
2016-12-26 05:47:16 -05:00
|
|
|
%a.dropdown-toggle-page{ href: "#" }
|
2016-08-12 11:36:59 -04:00
|
|
|
Create new label
|
2016-04-18 15:56:02 -04:00
|
|
|
%li
|
|
|
|
= link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
|
2016-05-31 17:11:46 -04:00
|
|
|
- if show_create && @project && can?(current_user, :admin_label, @project)
|
2016-04-18 15:56:02 -04:00
|
|
|
Manage labels
|
|
|
|
- else
|
2016-04-20 12:40:55 -04:00
|
|
|
View labels
|
2016-05-31 17:11:46 -04:00
|
|
|
= dropdown_loading
|