From: Julien Lancelot Date: Fri, 11 Oct 2013 12:03:40 +0000 (+0200) Subject: Revert "SONAR-4717 Add technical_debt_density in Technical Debt widget" X-Git-Tag: 4.0~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7d877415c56034464e077c5323d17a0efc9c597a;p=sonarqube.git Revert "SONAR-4717 Add technical_debt_density in Technical Debt widget" This reverts commit b288cca1db46743ed67056b6e962420dd1855d1e. --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index a11dda4a588..9277c96a0f4 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -1160,7 +1160,6 @@ widget.technical_debt.name=Technical Debt widget.technical_debt.description=Displays the technical debt, also known as remediation cost. widget.technical_debt.days=days widget.technical_debt.no_info_available=No information available. -widget.technical_debt.technical_debt_density=Technical Debt Density widget.technical_debt_pyramid.name=Technical Debt Pyramid widget.technical_debt_pyramid.description=Displays the technical debt by characteristics. Characteristics located at the bottom should be addressed before those on top. diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb index 5bf7dfd312e..1e5f4b5c447 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb @@ -1,36 +1,18 @@ <% - technical_debt = measure('sqale_index') - technical_debt_density = measure('technical_debt_density') - unless technical_debt && technical_debt.value + index = measure('sqale_index') + unless index && index.value %>

<%= message('widget.technical_debt.name') -%>

<%= message('widget.technical_debt.no_info_available') -%> <% else %> - - - - - - -
-
-

<%= message('widget.technical_debt.name') -%>

-

- - <%= number_with_precision(technical_debt.value, :precision => 1) -%> <%= message('widget.technical_debt.days') -%> - <%= dashboard_configuration.selected_period? ? format_variation(technical_debt) : trend_icon(technical_debt) -%> -

-
-
-
-

<%= message('widget.technical_debt.technical_debt_density') -%>

-

- - <%= number_with_precision(technical_debt_density.value, :precision => 1) -%> - <%= dashboard_configuration.selected_period? ? format_variation(technical_debt_density) : trend_icon(technical_debt_density) -%> -

-
-
+
+

<%= message('widget.technical_debt.name') -%>

+

+ + <%= number_with_precision(index.value, :precision => 1) -%> <%= message('widget.technical_debt.days') -%> + <%= dashboard_configuration.selected_period? ? format_variation(index) : trend_icon(index) -%> +

+
<% end %>