aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb50
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
2 files changed, 26 insertions, 25 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb
index b37a7ce3821..6a24a955965 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb
@@ -10,40 +10,42 @@
<div class="widget-row">
<div class="widget-span widget-span-5">
<div class="widget-measure-container">
- <div class="widget-measure widget-measure-main">
- <span class="widget-label"><%= message('widget.complexity.name') -%></span>
- <% if function_complexity %>
+ <% if complexity %>
+ <p class="widget-measure widget-measure-main">
+ <span class="widget-label"><%= message('metric.complexity.name') %></span>
+ <span class="nowrap">
+ <%= format_measure(complexity, :url => url_for_drilldown(complexity)) %>
+ <%= dashboard_configuration.selected_period? ? format_variation(complexity) : trend_icon(complexity) -%>
+ </span>
+ </p>
+ <% end %>
+ <% if function_complexity %>
+ <p class="widget-measure">
+ <span class="widget-label"><%= message('widget.complexity.per_method.suffix') %></span>
<span class="nowrap">
<%= format_measure(function_complexity, :url => url_for_drilldown(function_complexity)) %>
<%= dashboard_configuration.selected_period? ? format_variation(function_complexity) : trend_icon(function_complexity) -%>
- <span class="small"><%= message('widget.complexity.per_method.suffix') %></span>
</span>
- <% end %>
- <% if class_complexity %>
- <br>
+ </p>
+ <% end %>
+ <% if class_complexity %>
+ <p class="widget-measure">
+ <span class="widget-label"><%= message('widget.complexity.per_class.suffix') %></span>
<span class="nowrap">
<%= format_measure(class_complexity, :url => url_for_drilldown(class_complexity)) %>
- <%= dashboard_configuration.selected_period? ? format_variation(class_complexity) : trend_icon(class_complexity) -%>
- <span class="small"><%= message('widget.complexity.per_class.suffix') %></span>
+ <%= dashboard_configuration.selected_period? ? format_variation(class_complexity) : trend_icon(class_complexity) -%>
</span>
- <% end %>
- <% if file_complexity %>
- <br>
+ </p>
+ <% end %>
+ <% if file_complexity %>
+ <p class="widget-measure">
+ <span class="widget-label"><%= message('widget.complexity.per_file.suffix') %></span>
<span class="nowrap">
<%= format_measure(file_complexity, :url => url_for_drilldown(file_complexity)) %>
- <%= dashboard_configuration.selected_period? ? format_variation(file_complexity) : trend_icon(file_complexity) -%>
- <span class="small"><%= message('widget.complexity.per_file.suffix') %></span>
+ <%= dashboard_configuration.selected_period? ? format_variation(file_complexity) : trend_icon(file_complexity) -%>
</span>
- <% end %>
- <% if complexity %>
- <br>
- <span class="nowrap">
- <%= message('widget.complexity.total') -%>
- : <%= format_measure(complexity, :url => url_for_drilldown(complexity)) %>
- <%= dashboard_configuration.selected_period? ? format_variation(complexity) : trend_icon(complexity) -%>
- </span>
- <% end %>
- </div>
+ </p>
+ <% end %>
</div>
</div>
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index b4adf371377..32c52343264 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -1084,7 +1084,6 @@ widget.complexity.description=Reports on complexity, average complexity and comp
widget.complexity.per_method.suffix=\ /function
widget.complexity.per_class.suffix=\ /class
widget.complexity.per_file.suffix=\ /file
-widget.complexity.total=Total
widget.custom_measures.name=Custom Measures
widget.custom_measures.description=Displays a list of selected measures.