]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7381 Log flooding with web page component/index
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 3 May 2016 16:21:01 +0000 (18:21 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 6 May 2016 09:14:12 +0000 (11:14 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/component/index.html.erb

index 27fe285b3d7358dc99304b53132a63b5c8d979c2..aa8f970e11cd23742407d3deac661db05343ffeb 100644 (file)
@@ -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 %>