]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "SONAR-4717 Add technical_debt_density in Technical Debt widget"
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 11 Oct 2013 12:03:40 +0000 (14:03 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 11 Oct 2013 12:38:08 +0000 (14:38 +0200)
This reverts commit b288cca1db46743ed67056b6e962420dd1855d1e.

plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/technical_debt.html.erb

index a11dda4a588f7c6b985f9c6091a18fa27c4ba4b5..9277c96a0f430e669de730d4ddb57f72134c2544 100644 (file)
@@ -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.
index 5bf7dfd312ef8d3a4ede410a056f83cad9f6728d..1e5f4b5c447b30eec50dd4247f27c5d002ab971e 100644 (file)
@@ -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 %>