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
|
|
|
|
2017-08-01 17:23:42 +00:00
|
|
|
%section.js-vue-notes-event
|
2017-07-27 20:24:05 +00:00
|
|
|
#js-vue-notes{ data: { discussions_path: discussions_namespace_project_issue_path(@project.namespace, @project, @issue, format: :json),
|
2017-07-28 09:46:46 +00:00
|
|
|
register_path: "#{new_session_path(:user, redirect_to_referer: 'yes')}#register-pane",
|
2017-07-27 20:24:05 +00:00
|
|
|
new_session_path: new_session_path(:user, redirect_to_referer: 'yes'),
|
2017-07-28 11:53:51 +00:00
|
|
|
markdown_docs: help_page_path('user/markdown'),
|
|
|
|
quick_actions_docs: help_page_path('user/project/quick_actions'),
|
2017-08-07 11:59:34 +00:00
|
|
|
notes_path: notes_url(view: 'full_data'),
|
2017-07-28 09:46:46 +00:00
|
|
|
last_fetched_at: Time.now.to_i,
|
2017-07-27 20:24:05 +00:00
|
|
|
issue_data: serialize_issuable(@issue),
|
2017-08-11 23:35:44 +00:00
|
|
|
current_user_data: UserSerializer.new.represent(current_user).to_json } }
|
2017-06-08 22:50:11 +00:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= webpack_bundle_tag 'common_vue'
|
|
|
|
= webpack_bundle_tag 'notes'
|
2017-08-11 11:51:41 +00:00
|
|
|
|
2017-08-11 14:28:46 +00:00
|
|
|
= render "layouts/init_auto_complete"
|