2020-07-27 18:09:54 +00:00
|
|
|
- add_page_startup_api_call discussions_path(@issue)
|
|
|
|
|
2017-08-14 10:35:58 +00:00
|
|
|
- @gfm_form = true
|
2017-08-17 17:27:11 +00:00
|
|
|
|
2014-12-25 12:32:49 +00:00
|
|
|
- content_for :note_actions do
|
2015-06-26 13:55:56 +00:00
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2017-05-24 22:52:54 +00:00
|
|
|
= 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'
|
2015-04-26 22:43:02 +00:00
|
|
|
|
2019-02-20 14:51:06 +00:00
|
|
|
%section.issuable-discussion.js-vue-notes-event
|
2018-10-06 17:16:40 +00:00
|
|
|
#js-vue-notes{ data: { notes_data: notes_data(@issue).to_json,
|
2020-07-13 15:09:08 +00:00
|
|
|
noteable_data: serialize_issuable(@issue, with_blocking_issues: true),
|
2018-06-21 12:22:40 +00:00
|
|
|
noteable_type: 'Issue',
|
|
|
|
target_type: 'issue',
|
2018-10-23 09:49:45 +00:00
|
|
|
current_user_data: UserSerializer.new.represent(current_user, {only_path: true}, CurrentUserEntity).to_json } }
|