2018-03-17 18:26:18 +05:30
|
|
|
- @gfm_form = true
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- content_for :note_actions do
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2017-09-10 17:25:29 +05:30
|
|
|
= 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-09-11 14:41:01 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%section.js-vue-notes-event
|
|
|
|
#js-vue-notes{ data: { discussions_path: discussions_project_issue_path(@project, @issue, format: :json),
|
|
|
|
register_path: new_session_path(:user, redirect_to_referer: 'yes', anchor: 'register-pane'),
|
|
|
|
new_session_path: new_session_path(:user, redirect_to_referer: 'yes'),
|
|
|
|
markdown_docs_path: help_page_path('user/markdown'),
|
|
|
|
quick_actions_docs_path: help_page_path('user/project/quick_actions'),
|
|
|
|
notes_path: notes_url,
|
|
|
|
last_fetched_at: Time.now.to_i,
|
|
|
|
noteable_data: serialize_issuable(@issue),
|
|
|
|
current_user_data: UserSerializer.new.represent(current_user, only_path: true).to_json } }
|