debian-mirror-gitlab/app/views/shared/boards/components/sidebar/_assignee.html.haml

32 lines
1.5 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
.block.assignee{ ref: "assigneeBlock" }
%template{ "v-if" => "issue.assignees" }
%assignee-title{ ":number-of-assignees" => "issue.assignees.length",
":loading" => "loadingAssignees",
2018-03-17 18:26:18 +05:30
":editable" => can_admin_issue? }
2017-08-17 22:00:37 +05:30
%assignees.value{ "root-path" => "#{root_url}",
":users" => "issue.assignees",
2018-03-17 18:26:18 +05:30
":editable" => can_admin_issue?,
2017-08-17 22:00:37 +05:30
"@assign-self" => "assignSelf" }
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2017-08-17 22:00:37 +05:30
.selectbox.hide-collapsed
%input.js-vue{ type: "hidden",
name: "issue[assignee_ids][]",
":value" => "assignee.id",
"v-if" => "issue.assignees",
"v-for" => "assignee in issue.assignees",
":data-avatar_url" => "assignee.avatar",
":data-name" => "assignee.name",
":data-username" => "assignee.username" }
.dropdown
2019-07-31 22:56:46 +05:30
- dropdown_options = assignees_dropdown_options('issue')
2018-03-17 18:26:18 +05:30
%button.dropdown-menu-toggle.js-user-search.js-author-search.js-multiselect.js-save-user-data.js-issue-board-sidebar{ type: 'button', ref: 'assigneeDropdown', data: board_sidebar_user_data,
2018-05-09 12:01:36 +05:30
":data-issuable-id" => "issue.iid" }
2017-09-10 17:25:29 +05:30
= dropdown_options[:title]
2021-01-29 00:20:46 +05:30
= sprite_icon('chevron-down', css_class: "dropdown-menu-toggle-icon gl-top-3")
2017-08-17 22:00:37 +05:30
.dropdown-menu.dropdown-select.dropdown-menu-user.dropdown-menu-selectable.dropdown-menu-author
= dropdown_title("Assign to")
= dropdown_filter("Search users")
= dropdown_content
= dropdown_loading