summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-04-22 11:38:51 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-04-22 11:39:10 +0200
commite4e0443c0b4e8b99e5a96af88eb8611ee0534c78 (patch)
tree0bc11b97ab19db69bf4b95c2a3b87fad02ca23c6
parenta5c0f816105e581c72fd8a7cb45f59b1e5122955 (diff)
downloadsonarqube-e4e0443c0b4e8b99e5a96af88eb8611ee0534c78.tar.gz
sonarqube-e4e0443c0b4e8b99e5a96af88eb8611ee0534c78.zip
SONAR-3893 Introduced unique partial for source display
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/shared/_source_display.erb11
1 files changed, 6 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/shared/_source_display.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/shared/_source_display.erb
index 10cf2f6542f..3ddbdfcb372 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/shared/_source_display.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/shared/_source_display.erb
@@ -1,16 +1,17 @@
-
-<%= current_display_id = "sources_#{rand(100)}" %>
+<%
+ current_display_id = "sources_#{rand(100)}"
+ has_displayed_lines = false
+%>
<table id="<%= current_display_id %>" class="sources2 code" cellpadding="0" cellspacing="0" border="0">
<script>
- $j("#<%= current_display_id %>").on("click", "span[class|='symbol']", {id : "<%= current_display_id.to_s() %>"}, highlight_usages);
+ $j("#<%= current_display_id %>").on("click", "span[class|='symbol']", {id: "<%= current_display_id.to_s() %>"}, highlight_usages);
</script>
<%
colspans = prepare_colspans(display_manual_violation_form, scm_available, display_coverage)
first_section = true
- has_displayed_lines = false
%>
<%
@@ -39,7 +40,7 @@
<% end %>
<% if scm_available %>
- render :partial => "shared/source_scm", :locals => {:line => line, :current_revision => current_revision}
+ render :partial => "shared/source_scm", :locals => {:line => line, :current_revision => current_revision}
<% end %>
<%= render :partial => "shared/source_line_numbers", :locals => {:index => index} %>