2014-12-25 07:32:49 -05:00
|
|
|
- content_for :note_actions do
|
|
|
|
- if can?(current_user, :modify_issue, @issue)
|
|
|
|
- if @issue.closed?
|
2015-04-29 16:11:48 -04:00
|
|
|
= 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'
|
2014-12-25 07:32:49 -05:00
|
|
|
- else
|
2015-04-29 16:11:48 -04:00
|
|
|
= 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'
|
2015-04-26 18:43:02 -04:00
|
|
|
|
|
|
|
= render 'shared/show_aside'
|
|
|
|
|
2014-12-25 07:32:49 -05:00
|
|
|
.row
|
2015-02-22 01:01:27 -05:00
|
|
|
%section.col-md-9
|
2015-03-20 15:45:45 -04:00
|
|
|
.votes-holder.pull-right
|
|
|
|
#votes= render 'votes/votes_block', votable: @issue
|
2014-12-25 07:32:49 -05:00
|
|
|
.participants
|
2015-06-24 06:49:34 -04:00
|
|
|
%span= pluralize(@participants.count, 'participant')
|
|
|
|
- @participants.each do |participant|
|
2014-12-25 07:32:49 -05:00
|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|
2015-04-29 16:11:48 -04:00
|
|
|
.voting_notes#notes= render 'projects/notes/notes_with_form'
|
2015-02-22 01:01:27 -05:00
|
|
|
%aside.col-md-3
|
2015-02-17 19:14:49 -05:00
|
|
|
.issuable-affix
|
|
|
|
.clearfix
|
2015-04-29 16:11:48 -04:00
|
|
|
%span.slead.has_tooltip{title: 'Cross-project reference'}
|
2015-02-17 19:14:49 -05:00
|
|
|
= cross_project_reference(@project, @issue)
|
2014-12-25 07:32:49 -05:00
|
|
|
%hr
|
2015-02-17 19:14:49 -05:00
|
|
|
.context
|
2015-06-25 10:04:50 -04:00
|
|
|
= render 'shared/issuable/context', issuable: @issue
|
2015-02-17 19:14:49 -05:00
|
|
|
|
|
|
|
- if @issue.labels.any?
|
2015-03-20 15:45:45 -04:00
|
|
|
.issuable-context-title
|
|
|
|
%label Labels
|
2015-02-17 19:14:49 -05:00
|
|
|
.issue-show-labels
|
|
|
|
- @issue.labels.each do |label|
|
2015-05-21 23:40:25 -04:00
|
|
|
= link_to_label(label)
|