aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-05-03 18:21:01 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-05-06 11:14:12 +0200
commitf6f52d114ec91f37716e515d6d880819ea7e96fd (patch)
tree0a1af2bcb1b43a69b76a59999a4a5c56de50703b /server/sonar-web/src
parent2904c7846d8233f71a6340c6f7f884537bdc7b6a (diff)
downloadsonarqube-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.erb2
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 %>