diff -Nur sonar-2.14-RC1.ori/war/sonar-server/WEB-INF/app/views//resource/index.html.erb sonar-2.14-RC1/war/sonar-server/WEB-INF/app/views//resource/index.html.erb
--- sonar-2.14-RC1.ori/war/sonar-server/WEB-INF/app/views//resource/index.html.erb 2012-02-27 15:56:00.000000000 +0100
+++ sonar-2.14-RC1/war/sonar-server/WEB-INF/app/views//resource/index.html.erb 2012-03-05 10:51:03.325829700 +0100
@@ -9,6 +9,16 @@
<% end %>
<% end %>
+<%
+scmRevisionUrl='#'
+if @scm_available
+ @resource.root.custom_links.each do |custom_link|
+ if custom_link.name.upcase == 'SCMREVISIONURL'
+ scmRevisionUrl = custom_link.href
+ end
+ end
+end
+%>
<% if @lines && @lines.size>0 %>
<%
@@ -79,9 +89,10 @@
if current_revision!=line.revision
current_revision=line.revision
title = "Revision #{h(line.revision)}"
+href = "#{scmRevisionUrl}#{h(line.revision)}"
%>
|
-<%= Java::OrgSonarApiUtils::DateUtils.formatDate(line.datetime) if line.datetime -%>
+<%= Java::OrgSonarApiUtils::DateUtils.formatDate(line.datetime) if line.datetime -%>
<%= h(line.author) -%> |
<% else %>
|
diff -Nur sonar-2.14-RC1.ori/war/sonar-server/WEB-INF/app/views//source/_source.html.erb sonar-2.14-RC1/war/sonar-server/WEB-INF/app/views//source/_source.html.erb
--- sonar-2.14-RC1.ori/war/sonar-server/WEB-INF/app/views//source/_source.html.erb 2012-02-27 15:56:00.000000000 +0100
+++ sonar-2.14-RC1/war/sonar-server/WEB-INF/app/views//source/_source.html.erb 2012-03-05 10:49:28.447793700 +0100
@@ -1,4 +1,14 @@
<% if !panel.empty? %>
+<%
+scmRevisionUrl="#"
+if @scm_available
+ @resource.root.custom_links.each do |custom_link|
+ if custom_link.name.upcase == 'SCMREVISIONURL'
+ scmRevisionUrl = custom_link.href
+ end
+ end
+end
+%>