aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-10-11 14:03:40 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-10-11 14:38:08 +0200
commit7d877415c56034464e077c5323d17a0efc9c597a (patch)
treef2ba888816615596957357f3fe3cb0c1ed04841f
parente16c5a4cb63d3358a4a34442a3ac9b64896881cb (diff)
downloadsonarqube-7d877415c56034464e077c5323d17a0efc9c597a.tar.gz
sonarqube-7d877415c56034464e077c5323d17a0efc9c597a.zip
Revert "SONAR-4717 Add technical_debt_density in Technical Debt widget"
This reverts commit b288cca1db46743ed67056b6e962420dd1855d1e.
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties1
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb38
2 files changed, 10 insertions, 29 deletions
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
%>
<h3><%= message('widget.technical_debt.name') -%></h3>
<span style="color: #777777; font-size: 93%; font-style:italic"><%= message('widget.technical_debt.no_info_available') -%></span>
<%
else
%>
- <table width="100%">
- <tr>
- <td valign="top" width="48%" nowrap>
- <div class="dashbox">
- <h3><%= message('widget.technical_debt.name') -%></h3>
- <p>
- <a href="<%= url_for_drilldown('sqale_index') -%>">
- <span class="big"><%= number_with_precision(technical_debt.value, :precision => 1) -%></span>&nbsp;<%= message('widget.technical_debt.days') -%></a>
- <%= dashboard_configuration.selected_period? ? format_variation(technical_debt) : trend_icon(technical_debt) -%>
- </p>
- </div>
- </td>
- <td width="10"> </td>
- <td valign="top">
- <div class="dashbox">
- <h3><%= message('widget.technical_debt.technical_debt_density') -%></h3>
- <p>
- <a href="<%= url_for_drilldown('technical_debt_density') -%>">
- <span class="big"><%= number_with_precision(technical_debt_density.value, :precision => 1) -%></span></a>
- <%= dashboard_configuration.selected_period? ? format_variation(technical_debt_density) : trend_icon(technical_debt_density) -%>
- </p>
- </div>
- </td>
- </tr>
- </table>
+ <div class="dashbox marginright10">
+ <h3><%= message('widget.technical_debt.name') -%></h3>
+ <p>
+ <a href="<%= url_for_drilldown('sqale_index') -%>">
+ <span class="big"><%= number_with_precision(index.value, :precision => 1) -%></span>&nbsp;<%= message('widget.technical_debt.days') -%></a>
+ <%= dashboard_configuration.selected_period? ? format_variation(index) : trend_icon(index) -%>
+ </p>
+ </div>
<% end %>