2014-12-25 07:32:49 -05:00
|
|
|
- content_for :note_actions do
|
2015-06-26 09:55:56 -04:00
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2016-03-04 03:42:22 -05:00
|
|
|
= link_to 'Reopen issue', issue_path(@issue, issue: {state_event: :reopen}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "Reopen issue", alternative_text: "Comment & reopen issue"}, class: "btn btn-nr btn-grouped btn-reopen btn-comment js-note-target-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue'
|
|
|
|
= link_to 'Close issue', issue_path(@issue, issue: {state_event: :close}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "Close issue", alternative_text: "Comment & close issue"}, class: "btn btn-nr btn-grouped btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
|
2015-04-26 18:43:02 -04:00
|
|
|
|
2015-12-10 13:03:48 -05:00
|
|
|
#notes
|
|
|
|
= render 'projects/notes/notes_with_form'
|