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

29 lines
1.2 KiB
Plaintext
Raw Normal View History

- content_for :note_actions do
- if can?(current_user, :update_issue, @issue)
- if @issue.closed?
2015-04-29 20:11:48 +00: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 20:11:48 +00: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 22:43:02 +00:00
= render 'shared/show_aside'
.gray-content-block.second-block.oneline-block
.row
.col-md-9
.votes-holder.pull-right
#votes= render 'votes/votes_block', votable: @issue
2015-12-08 11:57:49 +00:00
= render "shared/issuable/participants"
.col-md-3
.input-group.cross-project-reference
%span#cross-project-reference.slead.has_tooltip{title: 'Cross-project reference'}
= cross_project_reference(@project, @issue)
= clipboard_button(clipboard_target: 'span#cross-project-reference')
.row
%section.col-md-9
2015-04-29 20:11:48 +00:00
.voting_notes#notes= render 'projects/notes/notes_with_form'
%aside.col-md-3
2015-02-18 00:14:49 +00:00
.issuable-affix
.context
= render 'shared/issuable/context', issuable: @issue