22 lines
909 B
Text
22 lines
909 B
Text
- title = local_assigns.fetch(:title, 'Assign labels')
|
|
- show_create = local_assigns.fetch(:show_create, true)
|
|
- show_footer = local_assigns.fetch(:show_footer, true)
|
|
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels')
|
|
.dropdown-page-one
|
|
= dropdown_title(title)
|
|
= dropdown_filter(filter_placeholder, search_id: "label-name")
|
|
= dropdown_content
|
|
- if @project && show_footer
|
|
= dropdown_footer do
|
|
%ul.dropdown-footer-list
|
|
- if can?(current_user, :admin_label, @project)
|
|
%li
|
|
%a.dropdown-toggle-page{href: "#"}
|
|
Create new
|
|
%li
|
|
= link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
|
|
- if show_create && @project && can?(current_user, :admin_label, @project)
|
|
Manage labels
|
|
- else
|
|
View labels
|
|
= dropdown_loading
|