diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-11 08:45:59 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-11 08:46:08 +0100 |
commit | 8ef1a25a5ca5e9d810eb8ff0a14fc0a055bb7af5 (patch) | |
tree | 6c9ce034a49384588d6dc160ccd73fd44ee021ef /plugins/sonar-design-plugin | |
parent | 8b61ed0708c261fb4984861589f37b2c138c4ea1 (diff) | |
download | sonarqube-8ef1a25a5ca5e9d810eb8ff0a14fc0a055bb7af5.tar.gz sonarqube-8ef1a25a5ca5e9d810eb8ff0a14fc0a055bb7af5.zip |
SONAR-5042 Remove RFC widget and remove deprecated measure on resource viewer header
Diffstat (limited to 'plugins/sonar-design-plugin')
2 files changed, 0 insertions, 75 deletions
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 index 7a98be70d06..00000000000 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ResponseForClassWidget.java +++ /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 index 976d6cdde9f..00000000000 --- a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/response_for_class.html.erb +++ /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 %> |