2a9eed6620
Conflicts: app/views/projects/commits/_commit.html.haml app/views/projects/issues/_issue.html.haml app/views/projects/issues/_issue_context.html.haml app/views/projects/merge_requests/_merge_request.html.haml app/views/projects/merge_requests/show/_context.html.haml
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
= form_for [@project.namespace.becomes(Namespace), @project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f|
|
|
%div.prepend-top-20
|
|
.issuable-context-title
|
|
%label
|
|
Assignee:
|
|
- if issue.assignee
|
|
%strong= link_to_member(@project, @issue.assignee, size: 24)
|
|
- else
|
|
none
|
|
- if can?(current_user, :modify_issue, @issue)
|
|
= project_users_select_tag('issue[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @issue.assignee_id)
|
|
|
|
%div.prepend-top-20.clearfix
|
|
.issuable-context-title
|
|
%label
|
|
Milestone:
|
|
- if issue.milestone
|
|
%span.back-to-milestone
|
|
= link_to namespace_project_milestone_path(@project.namespace, @project, @issue.milestone) do
|
|
%strong
|
|
%i.fa.fa-clock-o
|
|
= @issue.milestone.title
|
|
- else
|
|
none
|
|
- if can?(current_user, :modify_issue, @issue)
|
|
= f.select(:milestone_id, milestone_options(@issue), { include_blank: "Select milestone" }, {class: 'select2 select2-compact js-select2 js-milestone'})
|
|
= hidden_field_tag :issue_context
|
|
= f.submit class: 'btn'
|