summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_discussion.html.haml
blob: dc434cf38c4ab006432903456cfd5dace77a4865 (plain)
1
2
3
4
5
6
7
8
9
- content_for :note_actions do
  - if can?(current_user, :update_issue, @issue)
    - if @issue.closed?
      = 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'
    - else
      = 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'

#notes
  = render 'projects/notes/notes_with_form'