]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5042 Remove RFC widget and remove deprecated measure on resource viewer header
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 11 Feb 2014 07:45:59 +0000 (08:45 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 11 Feb 2014 07:46:08 +0000 (08:46 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ResponseForClassWidget.java [deleted file]
plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/response_for_class.html.erb [deleted file]
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_header_source.html.erb

index cbe50409e85c1ccf98bf8e746d00aa215cf087e1..0ee4edaea7f0740ee5fb7d900b8c4276936dab59 100644 (file)
@@ -1261,11 +1261,6 @@ widget.treemap-widget.property.colorMetric.description=Metric used for square co
 widget.treemap-widget.property.heightInPercents.name=Height
 widget.treemap-widget.property.heightInPercents.description=Height in percents of width
 
-widget.rfc.name=Response for Class
-widget.rfc.description=Reports on RFC average and distribution.
-widget.rfc.title=Response for Class
-widget.rfc.per_class.suffix=\ /class
-
 widget.welcome.name=Welcome
 widget.welcome.description=Welcome message used to provide links to the most valuable resources like documentation and support
 widget.welcome.html=<h3 class="marginbottom5">Welcome to SonarQube Dashboard</h3>\
diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ResponseForClassWidget.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ResponseForClassWidget.java
deleted file mode 100644 (file)
index 7a98be7..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.plugins.design.ui.widgets;
-
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWidget;
-import org.sonar.api.web.UserRole;
-import org.sonar.api.web.WidgetCategory;
-
-@UserRole(UserRole.USER)
-@WidgetCategory({"Design"})
-public final class ResponseForClassWidget extends AbstractRubyTemplate implements RubyRailsWidget {
-
-  public String getId() {
-    return "rfc";
-  }
-
-  public String getTitle() {
-    return "Response for class";
-  }
-
-  @Override
-  protected String getTemplatePath() {
-    return "/org/sonar/plugins/design/ui/widgets/response_for_class.html.erb";
-  }
-}
diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/response_for_class.html.erb b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/response_for_class.html.erb
deleted file mode 100644 (file)
index 976d6cd..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<%
-  rfc=measure('rfc')
-  if rfc
-    rfc_distribution=measure('rfc_distribution')
-    
-    display_chart = rfc_distribution && !rfc_distribution.data.blank?
-%>
-<table width="100%">
-  <tbody>
-    <tr>
-      <td valign="top" width="<%= display_chart ? '50' : '100' -%>%">
-        <div class="dashbox">
-          <h3><%= message('widget.rfc.title') -%></h3>
-          <p><span class="big">
-            <%= format_measure(rfc, :suffix => '', :default => '-', :url => url_for_drilldown('rfc')) -%></span><%= message('widget.rfc.per_class.suffix') -%> <%= dashboard_configuration.selected_period? ? format_variation(rfc) : trend_icon(rfc, :big => true) -%>
-          </p>
-        </div>
-      </td>
-
-      <%
-        if display_chart
-          query="ck=distbar&c=777777&w=180&h=100&fs=8&bgc=ffffff&v=" + u(rfc_distribution.data)
-      %>
-      <td valign="top" width="50px">
-        <a href="<%= url_for_drilldown('rfc') -%>"><%= chart(query, :id => 'rfc_distribution', :alt => '') -%></a>
-      </td>
-      <% end %>
-
-    </tr>
-  </tbody>
-</table>
-<% end %>
index d80b3751004c05a6487edc242bc80775ae65047c..e8d35456ae369ea829d86b53bab3b3a6e55cb648 100644 (file)
             <td class="value"><%= format_measure(m) -%></td>
           </tr>
         <% end %>
-        <% if m=measure('noc') %>
-          <tr>
-            <td class="name"><%= message('metric.noc.name') -%>:</td>
-            <td class="value"><%= format_measure(m) -%></td>
-          </tr>
-        <% end %>
-        <% if m=measure('dit') %>
-          <tr>
-            <td class="name"><%= message('metric.dit.name') -%>:</td>
-            <td class="value"><%= format_measure(m) -%></td>
-          </tr>
-        <% end %>
-        <% if m=measure('rfc') %>
-          <tr>
-            <td class="name"><%= message('metric.rfc.name') -%>:</td>
-            <td class="value"><%= format_measure(m) -%></td>
-          </tr>
-        <% end %>
       </table>
       </td>
     </tr>