diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-05-03 18:21:01 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-05-06 11:14:12 +0200 |
commit | f6f52d114ec91f37716e515d6d880819ea7e96fd (patch) | |
tree | 0a1af2bcb1b43a69b76a59999a4a5c56de50703b /server/sonar-web/src | |
parent | 2904c7846d8233f71a6340c6f7f884537bdc7b6a (diff) | |
download | sonarqube-f6f52d114ec91f37716e515d6d880819ea7e96fd.tar.gz sonarqube-f6f52d114ec91f37716e515d6d880819ea7e96fd.zip |
SONAR-7381 Log flooding with web page component/index
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb index 27fe285b3d7..aa8f970e11c 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb @@ -1,4 +1,5 @@ <% content_for :extra_script do %> + <% if @resource %> <script type="text/javascript"> (function () { window.sonarqube.el = '#body'; @@ -9,6 +10,7 @@ }; })(); </script> + <% end %> <script src="<%= ApplicationController.root_context -%>/js/bundles/source-viewer.js?v=<%= sonar_version -%>"></script> <% end %> |