debian-mirror-gitlab/app/views/shared/issuable/_label_page_default.html.haml

29 lines
1.1 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- title = local_assigns.fetch(:title, 'Assign labels')
- show_create = local_assigns.fetch(:show_create, true)
- show_footer = local_assigns.fetch(:show_footer, true)
2017-08-17 22:00:37 +05:30
- filter_placeholder = local_assigns.fetch(:filter_placeholder, 'Search')
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
2017-08-17 22:00:37 +05:30
Create lists from the labels you use in your project. Issues with that
label will automatically be added to the list.
2016-09-13 17:45:13 +05:30
= dropdown_filter(filter_placeholder)
2016-06-02 11:05:42 +05:30
= dropdown_content
- if @project && show_footer
2016-06-02 11:05:42 +05:30
= dropdown_footer do
%ul.dropdown-footer-list
- if can?(current_user, :admin_label, @project)
2016-06-02 11:05:42 +05:30
%li
2017-08-17 22:00:37 +05:30
%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
2017-09-10 17:25:29 +05:30
= link_to project_labels_path(@project), :"data-is-link" => true do
- if show_create && @project && can?(current_user, :admin_label, @project)
2016-06-02 11:05:42 +05:30
Manage labels
- else
View labels
= dropdown_loading