2016-06-02 11:05:42 +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)
|
2016-06-02 11:05:42 +05:30
|
|
|
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels')
|
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
|
|
|
|
Each label that exists in your issue tracker can have its own dedicated
|
|
|
|
list. Select a label below to add a list to your Board and it will
|
|
|
|
automatically be populated with issues that have that label. To create
|
|
|
|
a list for a label that doesn't exist yet, simply create the label below.
|
|
|
|
= dropdown_filter(filter_placeholder)
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_content
|
2016-06-16 23:09:34 +05:30
|
|
|
- if @project && show_footer
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_footer do
|
|
|
|
%ul.dropdown-footer-list
|
2016-06-16 23:09:34 +05:30
|
|
|
- if can?(current_user, :admin_label, @project)
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
|
|
|
%a.dropdown-toggle-page{href: "#"}
|
2016-09-13 17:45:13 +05:30
|
|
|
Create new label
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
|
|
|
= link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
|
2016-06-16 23:09:34 +05:30
|
|
|
- if show_create && @project && can?(current_user, :admin_label, @project)
|
2016-06-02 11:05:42 +05:30
|
|
|
Manage labels
|
|
|
|
- else
|
|
|
|
View labels
|
2016-06-16 23:09:34 +05:30
|
|
|
= dropdown_loading
|