gitlab-org--gitlab-foss/app/views/projects/issues/_discussion.html.haml

34 lines
1.3 KiB
Text
Raw Normal View History

- 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'
- 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'
.row
%section.col-md-9
.votes-holder.pull-right
#votes= render 'votes/votes_block', votable: @issue
.participants
%span= pluralize(@participants.count, 'participant')
- @participants.each do |participant|
= 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'
%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)
%hr
2015-02-17 19:14:49 -05:00
.context
= render 'shared/issuable/context', issuable: @issue
2015-02-17 19:14:49 -05:00
- if @issue.labels.any?
.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)