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

32 lines
1.3 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- title = local_assigns.fetch(:title, _('Assign labels'))
2018-11-08 19:23:39 +05:30
- content_title = local_assigns.fetch(:content_title, _('Create lists from labels. Issues with that label appear in that list.'))
- show_title = local_assigns.fetch(:show_title, true)
- show_create = local_assigns.fetch(:show_create, true)
- show_footer = local_assigns.fetch(:show_footer, true)
2020-05-24 23:13:21 +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)
2018-05-09 12:01:36 +05:30
- subject = @project || @group
2016-06-02 11:05:42 +05:30
.dropdown-page-one
2018-11-08 19:23:39 +05:30
- if show_title
= dropdown_title(title)
2016-09-13 17:45:13 +05:30
- if show_boards_content
.issue-board-dropdown-content
2019-07-31 22:56:46 +05:30
%p.m-0
2018-11-08 19:23:39 +05:30
= content_title
2016-09-13 17:45:13 +05:30
= dropdown_filter(filter_placeholder)
2016-06-02 11:05:42 +05:30
= dropdown_content
2018-03-17 18:26:18 +05:30
- if current_board_parent && show_footer
2016-06-02 11:05:42 +05:30
= dropdown_footer do
%ul.dropdown-footer-list
2018-03-17 18:26:18 +05:30
- if can?(current_user, :admin_label, current_board_parent)
2016-06-02 11:05:42 +05:30
%li
2017-08-17 22:00:37 +05:30
%a.dropdown-toggle-page{ href: "#" }
2018-05-09 12:01:36 +05:30
= create_label_title(subject)
2016-06-02 11:05:42 +05:30
%li
2018-03-17 18:26:18 +05:30
= link_to labels_path, :"data-is-link" => true do
- if show_create && can?(current_user, :admin_label, current_board_parent)
2018-05-09 12:01:36 +05:30
= manage_labels_title(subject)
2016-06-02 11:05:42 +05:30
- else
2018-05-09 12:01:36 +05:30
= view_labels_title(subject)
= dropdown_loading