<% content_for :extra_script do %>
  <% if @resource %>
  <script type="text/javascript">
    (function () {
      window.sonarqube.el = '#body';
      window.sonarqube.file = {
        uuid: '<%= @resource.uuid -%>',
        key: '<%= @resource.key -%>'
        <% if @line %>, line: <%= @line -%><% end %>
      };
    })();
  </script>
  <% end %>
  <script src="<%= ApplicationController.root_context -%>/js/bundles/source-viewer.js?v=<%= sonar_version -%>"></script>
<% end %>



