]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4878 Unify UX of links on "most violated rules" widget
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 4 Feb 2014 16:43:38 +0000 (17:43 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 4 Feb 2014 16:45:32 +0000 (17:45 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb

index 45e48cbd8b16940350375cf62a014c60eefc5627..145d39e37cd74d627b885a89e459a7b71773369f 100644 (file)
                 <%= image_tag('priority/' + m.severity + '.png') -%>
               </td>
               <td>
-                <a href="<%= url_for(:controller => 'drilldown', :action => 'issues', :id => @resource.key, :rule => rule.key, :rule_sev => m.severity, :period => dashboard_configuration.period_index) -%>">
-                  <%= h rule.name -%>
-                </a>
+                <%= h rule.name -%>
               </td>
               <td class="right nowrap">
-                <%= dashboard_configuration.selected_period? ? format_variation(m) : format_measure(m) -%>
+                <a class="nolink" href="<%= url_for(:controller => 'drilldown', :action => 'issues', :id => @resource.key, :rule => rule.key, :rule_sev => m.severity, :period => dashboard_configuration.period_index) -%>">
+                  <%= dashboard_configuration.selected_period? ? format_variation(m) : format_measure(m) -%>
+                </a>
               </td>
               <td class="barchart">
                 <div class="barchart" style="width: <%= (value*100/max_value).round.to_i -%>%">