_discussion.html.haml 570 Bytes
Newer Older
1
- content_for :note_actions do
2
  - if can?(current_user, :update_issue, @issue)
3
    - if @issue.closed?
Andriy Dyadyura's avatar
Andriy Dyadyura committed
4
      = link_to 'Reopen Issue', issue_path(@issue, issue: {state_event: :reopen}, status_only: true), method: :put, class: 'btn btn-nr btn-grouped btn-reopen js-note-target-reopen', title: 'Reopen Issue'
5
    - else
Andriy Dyadyura's avatar
Andriy Dyadyura committed
6
      = link_to 'Close Issue', issue_path(@issue, issue: {state_event: :close}, status_only: true), method: :put, class: 'btn btn-nr btn-grouped btn-close js-note-target-close', title: 'Close Issue'
7

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