diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-18 18:50:13 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-18 18:50:13 +0200 |
commit | 2300dc6b06275d5e6104abefcec23f490427cf12 (patch) | |
tree | b34bb97dc805755615e46e3e3c7da0afecfa104c /plugins | |
parent | 706395b2b2deb3255677423b93f8cc51274bfa4d (diff) | |
download | sonarqube-2300dc6b06275d5e6104abefcec23f490427cf12.tar.gz sonarqube-2300dc6b06275d5e6104abefcec23f490427cf12.zip |
SONAR-1928 Fix various details
Diffstat (limited to 'plugins')
5 files changed, 8 insertions, 8 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_metric.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_metric.html.erb index 86cc3f88821..894d54a5c8b 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_metric.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_metric.html.erb @@ -9,7 +9,7 @@ end title = widget_properties["title"] unless title && !title.blank? - title = message('widget.hotspot_metric.hotspots_for_x', :params => metric.short_name) + title = message('widget.hotspot_metric.hotspots_by_x', :params => metric.short_name) end snapshots = nil @@ -57,12 +57,12 @@ measure = s.measure(metric) resource = s.resource %> - <tr class="<%= cycle 'even','odd' -%>"> + <tr class="<%= cycle 'even','odd', :name => ('hotspot_metric' + widget.id.to_s) -%>"> <td> <%= link_to_resource(resource, resource.name) -%> </td> <td class="right"> - <%= measure.formatted_value -%> + <%= format_measure(measure) -%> </td> <td class="barchart"> <div class="barchart" style="width: <%= (measure.value*100/metric_max_value).round.to_i -%>%"> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_resources.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_resources.html.erb index 521d33e6d68..8685fc47ce8 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_resources.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_resources.html.erb @@ -44,7 +44,7 @@ violations_per_severity[fields[0]]=fields[1] end %> - <tr class="<%= cycle 'even','odd' -%>"> + <tr class="<%= cycle 'even','odd', :name => ('hotspot_most_violated_resources' + widget.id.to_s) -%>"> <td> <%= link_to_resource(resource, resource.name) -%> </td> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb index 40ff506c627..034d8b31021 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb @@ -89,8 +89,8 @@ measures.each do |m| rule = m.rule %> - <tr class="<%= cycle 'even','odd' -%>"> - <td> + <tr class="<%= cycle 'even','odd', :name => ('hotspot_most_violated_rules' + widget.id.to_s) -%>"> + <td class="thin"> <a href="<%= url_for(:controller => 'drilldown', :action => 'violations', :id => @resource.key, :priority => Sonar::RulePriority.to_s(m.rule_priority)) -%>"> <%= image_tag('priority/' + m.rule_priority.to_s + '.png') -%> </a> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb index 534f712f7b7..f580f788a06 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb @@ -89,7 +89,7 @@ <% rows.select{|row| row.metric.val_type != Metric::VALUE_TYPE_DISTRIB}.each do |row| %> - <tr class="<%= cycle 'even','odd' -%>"> + <tr class="<%= cycle 'even','odd', :name => ('time_machine' + widget.id.to_s) -%>"> <td width="1%" nowrap="nowrap" class="left text"> <%= row.metric.short_name %> </td> diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties index 54d8722a3cb..340171ea270 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -551,7 +551,7 @@ widget.hotspot_metric.name=Metric hotspot widget.hotspot_metric.description=Shows the files that have the worst result for a specific metric. widget.hotspot_metric.cannot_display_not_numeric_metric=The hotspot widget cannot display non-numerical metrics. widget.hotspot_metric.more=More -widget.hotspot_metric.hotspots_for_x=Hotspots for {0} +widget.hotspot_metric.hotspots_by_x=Hotspots by {0} widget.hotspot_most_violated_rules.name=Most violated rules widget.hotspot_most_violated_rules.description=Shows the rules that are the most violated. |