2015-04-26 12:48:37 +05:30
|
|
|
- content_for :note_actions do
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @issue.closed?
|
2015-09-11 14:41:01 +05:30
|
|
|
= link_to 'Reopen Issue', issue_path(@issue, issue: {state_event: :reopen}, status_only: true), method: :put, class: 'btn btn-grouped btn-reopen js-note-target-reopen', title: 'Reopen Issue'
|
2015-04-26 12:48:37 +05:30
|
|
|
- else
|
2015-09-11 14:41:01 +05:30
|
|
|
= link_to 'Close Issue', issue_path(@issue, issue: {state_event: :close}, status_only: true), method: :put, class: 'btn btn-grouped btn-close js-note-target-close', title: 'Close Issue'
|
|
|
|
|
|
|
|
= render 'shared/show_aside'
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.row
|
|
|
|
%section.col-md-9
|
|
|
|
.votes-holder.pull-right
|
|
|
|
#votes= render 'votes/votes_block', votable: @issue
|
|
|
|
.participants
|
2015-09-11 14:41:01 +05:30
|
|
|
%span= pluralize(@participants.count, 'participant')
|
|
|
|
- @participants.each do |participant|
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|
2015-09-11 14:41:01 +05:30
|
|
|
.voting_notes#notes= render 'projects/notes/notes_with_form'
|
2015-04-26 12:48:37 +05:30
|
|
|
%aside.col-md-3
|
|
|
|
.issuable-affix
|
|
|
|
.clearfix
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.slead.has_tooltip{title: 'Cross-project reference'}
|
2015-04-26 12:48:37 +05:30
|
|
|
= cross_project_reference(@project, @issue)
|
|
|
|
%hr
|
|
|
|
.context
|
2015-09-11 14:41:01 +05:30
|
|
|
= render 'shared/issuable/context', issuable: @issue
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
- if @issue.labels.any?
|
|
|
|
.issuable-context-title
|
|
|
|
%label Labels
|
|
|
|
.issue-show-labels
|
|
|
|
- @issue.labels.each do |label|
|
2015-09-11 14:41:01 +05:30
|
|
|
= link_to_label(label)
|