]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2071 Open resource viewer on the correct tab
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 22 Nov 2011 10:18:07 +0000 (11:18 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 22 Nov 2011 10:22:34 +0000 (11:22 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_resources.html.erb

index 3f457c7dfbf8d06560ab59901554be996f1e7b96..f4f5d2dd9e8e2603b7dea4b214a45993b38140b2 100644 (file)
@@ -53,7 +53,7 @@
 %>
     <tr class="<%= cycle 'even','odd', :name => ('hotspot_most_violated_resources' + widget.id.to_s) -%>">
       <td>
-        <%= link_to_resource(resource, resource.name) -%>
+        <%= link_to_resource(resource, resource.name, {:tab => :violations}) -%>
       </td>
       <td class="small right">
         <%= image_tag('priority/BLOCKER.png') -%>