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

29 lines
1.1 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)
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search')
- 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
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 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: "#" }
2016-08-12 15:36:59 +00:00
Create new label
2016-04-18 19:56:02 +00:00
%li
= link_to project_labels_path(@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