Commit 2ecbfa31 authored by Phil Hughes's avatar Phil Hughes

Remove inline script tag from merge request page

This removes inline JSON data from the merge request page
with the removal of this we are running less queries on page load
to populate this un-used data.
parent b292b07c
...@@ -49,8 +49,6 @@ ...@@ -49,8 +49,6 @@
= render "projects/merge_requests/tabs/pane", id: "notes", class: "notes voting_notes" do = render "projects/merge_requests/tabs/pane", id: "notes", class: "notes voting_notes" do
.row .row
%section.col-md-12 %section.col-md-12
-# haml-lint:disable InlineJavaScript
%script.js-notes-data{ type: "application/json" }= initial_notes_data(true).to_json.html_safe
.issuable-discussion.js-vue-notes-event .issuable-discussion.js-vue-notes-event
- if @merge_request.description.present? - if @merge_request.description.present?
.detail-page-description .detail-page-description
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment