summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_sidebar.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-25 16:46:15 +0100
committerPhil Hughes <me@iamphill.com>2017-07-25 16:46:15 +0100
commit887227e0371858d5d048f61bfe0700e4b7ebab58 (patch)
tree94619d6b051f013c87b7265274468961b3b00036 /app/views/shared/issuable/_sidebar.html.haml
parentfe27de8bf124d65013da1d82618a1ab45584ff68 (diff)
downloadgitlab-ce-887227e0371858d5d048f61bfe0700e4b7ebab58.tar.gz
moved some more inline code
removed some global variable comments
Diffstat (limited to 'app/views/shared/issuable/_sidebar.html.haml')
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 094f2472693..b08267357e5 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -138,11 +138,4 @@
= project_ref
= clipboard_button(text: project_ref, title: "Copy reference to clipboard", placement: "left")
- :javascript
- gl.sidebarOptions = {
- endpoint: "#{issuable_json_path(issuable)}?basic=true",
- editable: #{can_edit_issuable ? true : false},
- currentUser: #{current_user.to_json(only: [:username, :id, :name], methods: :avatar_url)},
- rootPath: "#{root_path}",
- fullPath: "#{@project.full_path}",
- };
+ %script.js-sidebar-options{ type: "application/json" }= issuable_sidebar_options(issuable, can_edit_issuable).to_json.html_safe