gitlab-org--gitlab-foss/app/views/shared/issuable/_label_page_default.html.haml

29 lines
1.1 KiB
Text
Raw Normal View History

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)
- show_footer = local_assigns.fetch(:show_footer, true)
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search')
- show_boards_content = local_assigns.fetch(:show_boards_content, false)
2016-04-18 15:56:02 -04:00
.dropdown-page-one
= dropdown_title(title)
- if show_boards_content
.issue-board-dropdown-content
%p
Create lists from the labels you use in your project. Issues with that
label will automatically be added to the list.
= 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
%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
View labels
2016-05-31 17:11:46 -04:00
= dropdown_loading