_discussion.html.haml 556 Bytes
Newer Older
1
- content_for :note_actions do
2
  - if can?(current_user, :update_issue, @issue)
3
    - if @issue.closed?
4
      = 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'
5
    - else
6
      = 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'
7

8 9
#notes
  = render 'projects/notes/notes_with_form'