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>\
+++ /dev/null
-/*
- * 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";
- }
-}
+++ /dev/null
-<%
- 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 %>
<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>