summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_discussion.html.haml
blob: 665968a64e1cf7c651e4c05c8591f1d8ae1a342d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- @gfm_form = true

- content_for :note_actions do
  - if can?(current_user, :update_issue, @issue)
    = link_to 'Reopen issue', issue_path(@issue, issue: {state_event: :reopen}, format: 'json'), data: {original_text: "Reopen issue", alternative_text: "Comment & reopen issue"}, class: "btn btn-nr 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}, format: 'json'), data: {original_text: "Close issue", alternative_text: "Comment & close issue"}, class: "btn btn-nr btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'

%section.js-vue-notes-event
  #js-vue-notes{ data: { notes_data: notes_data(@issue),
    noteable_data: serialize_issuable(@issue),
    noteable_type: 'Issue',
    target_type: 'issue',
    current_user_data: UserSerializer.new.represent(current_user, only_path: true).to_json } }