2015-04-26 12:48:37 +05:30
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f|
|
|
|
|
%div.prepend-top-20
|
|
|
|
.issuable-context-title
|
|
|
|
%label
|
2014-09-02 18:07:02 +05:30
|
|
|
Assignee:
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @merge_request.assignee
|
|
|
|
%strong= link_to_member(@project, @merge_request.assignee, size: 24)
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2015-04-26 12:48:37 +05:30
|
|
|
none
|
|
|
|
.issuable-context-selectbox
|
|
|
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
|
|
|
= users_select_tag('merge_request[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @merge_request.assignee_id, null_user: true)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
%div.prepend-top-20.clearfix
|
|
|
|
.issuable-context-title
|
|
|
|
%label
|
2014-09-02 18:07:02 +05:30
|
|
|
Milestone:
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @merge_request.milestone
|
|
|
|
%span.back-to-milestone
|
|
|
|
= link_to namespace_project_milestone_path(@project.namespace, @project, @merge_request.milestone) do
|
|
|
|
%strong
|
|
|
|
%i.fa.fa-clock-o
|
|
|
|
= @merge_request.milestone.title
|
|
|
|
- else
|
|
|
|
none
|
|
|
|
.issuable-context-selectbox
|
2014-09-02 18:07:02 +05:30
|
|
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
2015-04-26 12:48:37 +05:30
|
|
|
= f.select(:milestone_id, milestone_options(@merge_request), { include_blank: "Select milestone" }, {class: 'select2 select2-compact js-select2 js-milestone'})
|
2014-09-02 18:07:02 +05:30
|
|
|
= hidden_field_tag :merge_request_context
|
|
|
|
= f.submit class: 'btn'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
- if current_user
|
|
|
|
%div.prepend-top-20.clearfix
|
|
|
|
.issuable-context-title
|
|
|
|
%label
|
|
|
|
Subscription:
|
|
|
|
%button.btn.btn-block.subscribe-button
|
|
|
|
%i.fa.fa-eye
|
|
|
|
%span= @merge_request.subscribed?(current_user) ? "Unsubscribe" : "Subscribe"
|
|
|
|
- subscribtion_status = @merge_request.subscribed?(current_user) ? "subscribed" : "unsubscribed"
|
|
|
|
.subscription-status{"data-status" => subscribtion_status}
|
|
|
|
.description-block.unsubscribed{class: ( "hidden" if @merge_request.subscribed?(current_user) )}
|
|
|
|
You're not receiving notifications from this thread.
|
|
|
|
.description-block.subscribed{class: ( "hidden" unless @merge_request.subscribed?(current_user) )}
|
|
|
|
You're receiving notifications because you're subscribed to this thread.
|
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
new Subscription("#{toggle_subscription_namespace_project_merge_request_path(@merge_request.project.namespace, @project, @merge_request)}")
|