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

28 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-04-18 19:56:02 +00:00
- title = local_assigns.fetch(:title, 'Assign labels')
2016-05-31 21:11:46 +00:00
- show_create = local_assigns.fetch(:show_create, true)
- show_footer = local_assigns.fetch(:show_footer, true)
2016-04-18 19:56:02 +00:00
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search labels')
- show_boards_content = local_assigns.fetch(:show_boards_content, false)
2016-04-18 19:56:02 +00:00
.dropdown-page-one
= dropdown_title(title)
- if show_boards_content
.issue-board-dropdown-content
%p
Add a list to issue boards by selecting a label below. The list 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-04-18 19:56:02 +00:00
= dropdown_content
2016-05-31 21:33:18 +00:00
- if @project && show_footer
2016-04-18 19:56:02 +00:00
= dropdown_footer do
%ul.dropdown-footer-list
2016-05-31 21:11:46 +00:00
- if can?(current_user, :admin_label, @project)
2016-04-18 19:56:02 +00:00
%li
%a.dropdown-toggle-page{href: "#"}
Create new
%li
= link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
2016-05-31 21:11:46 +00:00
- if show_create && @project && can?(current_user, :admin_label, @project)
2016-04-18 19:56:02 +00:00
Manage labels
- else
View labels
2016-05-31 21:11:46 +00:00
= dropdown_loading