_discussion.html.haml 1023 Bytes
Newer Older
1
- @gfm_form = true
Douwe Maan's avatar
Douwe Maan committed
2

3
- content_for :note_actions do
4
  - if can?(current_user, :update_issue, @issue)
5 6
    = 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'
7

8
%section.js-vue-notes-event
9
  #js-vue-notes{ data: { notes_data: notes_data(@issue).to_json,
10
    noteable_data: serialize_issuable(@issue),
Felipe Artur's avatar
Felipe Artur committed
11 12
    noteable_type: 'Issue',
    target_type: 'issue',
13
    current_user_data: UserSerializer.new.represent(current_user, {only_path: true}, CurrentUserEntity).to_json } }