2015-01-24 18:02:58 +00:00
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f|
|
2014-12-18 15:22:10 +00:00
|
|
|
%div.prepend-top-20
|
2015-02-20 08:11:25 +00:00
|
|
|
.issuable-context-title
|
|
|
|
%label
|
|
|
|
Assignee:
|
2015-01-31 04:21:31 +00:00
|
|
|
- if issue.assignee
|
2015-02-20 08:11:25 +00:00
|
|
|
%strong= link_to_member(@project, @issue.assignee, size: 24)
|
2015-01-31 04:21:31 +00:00
|
|
|
- else
|
|
|
|
none
|
2014-12-18 15:22:10 +00:00
|
|
|
- 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)
|
2013-12-17 14:39:39 +00:00
|
|
|
|
2015-02-20 08:11:25 +00:00
|
|
|
%div.prepend-top-20.clearfix
|
|
|
|
.issuable-context-title
|
|
|
|
%label
|
|
|
|
Milestone:
|
2015-01-31 04:21:31 +00:00
|
|
|
- if issue.milestone
|
2015-02-20 08:11:25 +00:00
|
|
|
%span.back-to-milestone
|
2015-02-21 19:55:28 +00:00
|
|
|
= link_to namespace_project_milestone_path(@project.namespace, @project, @issue.milestone) do
|
2015-02-20 08:11:25 +00:00
|
|
|
%strong
|
|
|
|
%i.fa.fa-clock-o
|
|
|
|
= @issue.milestone.title
|
2015-01-31 04:21:31 +00:00
|
|
|
- else
|
|
|
|
none
|
2014-12-18 15:22:10 +00:00
|
|
|
- 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'
|
2015-03-15 16:17:12 +00:00
|
|
|
|
2015-03-18 06:16:10 +00:00
|
|
|
- if current_user
|
|
|
|
%div.prepend-top-20.clearfix
|
|
|
|
.issuable-context-title
|
|
|
|
%label
|
|
|
|
Subscription:
|
|
|
|
%button.btn.btn-block.subscribe-button
|
|
|
|
%i.fa.fa-eye
|
|
|
|
%span= @issue.subscribed?(current_user) ? "Unsubscribe" : "Subscribe"
|
|
|
|
- subscribtion_status = @issue.subscribed?(current_user) ? "subscribed" : "unsubscribed"
|
|
|
|
.subscription-status{"data-status" => subscribtion_status}
|
|
|
|
.description-block.unsubscribed{class: ( "hidden" if @issue.subscribed?(current_user) )}
|
|
|
|
You're not receiving notifications from this thread.
|
|
|
|
.description-block.subscribed{class: ( "hidden" unless @issue.subscribed?(current_user) )}
|
|
|
|
You're receiving notifications because you're subscribed to this thread.
|
2015-03-15 16:17:12 +00:00
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
$ ->
|
2015-03-16 15:20:17 +00:00
|
|
|
new Subscription("#{toggle_subscription_namespace_project_issue_path(@issue.project.namespace, @project, @issue)}")
|
2015-03-20 19:45:45 +00:00
|
|
|
|
|
|
|
|