import org.sonar.plugins.core.notifications.alerts.NewAlerts;
import org.sonar.plugins.core.notifications.reviews.ChangesInReviewAssignedToMeOrCreatedByMe;
import org.sonar.plugins.core.notifications.reviews.NewFalsePositiveReview;
-import org.sonar.plugins.core.notifications.violations.NewViolationsOnFirstDifferentialPeriod;
import org.sonar.plugins.core.security.ApplyProjectRolesDecorator;
import org.sonar.plugins.core.sensors.*;
import org.sonar.plugins.core.timemachine.*;
import org.sonar.plugins.core.widgets.*;
import org.sonar.plugins.core.widgets.issues.ActionPlansWidget;
import org.sonar.plugins.core.widgets.issues.*;
-import org.sonar.plugins.core.widgets.reviews.*;
+import org.sonar.plugins.core.widgets.reviews.FalsePositiveReviewsWidget;
+import org.sonar.plugins.core.widgets.reviews.MyReviewsWidget;
+import org.sonar.plugins.core.widgets.reviews.ProjectReviewsWidget;
import java.util.List;
ProjectReviewsWidget.class,
FalsePositiveReviewsWidget.class,
FalsePositiveIssuesWidget.class,
- ReviewsPerDeveloperWidget.class,
ActionPlansWidget.class,
org.sonar.plugins.core.widgets.ActionPlansWidget.class,
UnresolvedIssuesPerAssigneeWidget.class,
}
private void addSecondColumn(Dashboard dashboard) {
- dashboard.addWidget("unresolved_issues_per_assignee", 2);
+ dashboard.addWidget("reviews_per_developer", 2);
dashboard.addWidget("my_unresolved_issues", 2);
dashboard.addWidget("false_positive_issues", 2);
}
@WidgetCategory({"Issues"})
public class UnresolvedIssuesPerAssigneeWidget extends CoreWidget {
public UnresolvedIssuesPerAssigneeWidget() {
- super("unresolved_issues_per_assignee", "Unresolved issues per assignee", "/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb");
+ super("reviews_per_developer", "Unresolved issues per assignee", "/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb");
}
}
\ No newline at end of file
+++ /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.core.widgets.reviews;
-
-import org.sonar.api.web.WidgetCategory;
-import org.sonar.plugins.core.widgets.CoreWidget;
-
-@WidgetCategory({"Reviews"})
-public class ReviewsPerDeveloperWidget extends CoreWidget {
- public ReviewsPerDeveloperWidget() {
- super("reviews_per_developer", "Active reviews per developer", "/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb");
- }
-}
\ No newline at end of file
widget.false_positive_issues.property.numberOfLines.name=Number of lines
widget.false_positive_issues.property.numberOfLines.desc=Maximum number of issues displayed at the same time.
-widget.reviews_per_developer.name=Active reviews per developer
-widget.reviews_per_developer.description=Shows the number of open/reopened reviews per developer.
+widget.reviews_per_developer.name=Unresolved issues per assignee
+widget.reviews_per_developer.description=Shows the number of unresolved issues per assignee.
widget.reviews_per_developer.not_assigned=Not assigned
-widget.unresolved_issues_per_assignee.name=Unresolved issues per assignee
-widget.unresolved_issues_per_assignee.description=Shows the number of unresolved issues per assignee.
-widget.unresolved_issues_per_assignee.not_assigned=Not assigned
-
widget.unresolved_issues_statuses.name=Unresolved issue statuses
widget.unresolved_issues_statuses.description=Display the number of unresolved issues according to their status : Open, Reopened and Confirmed.
end
%>
-<h3><%= message('widget.unresolved_issues_per_assignee.name') -%></h3>
+<h3><%= message('widget.reviews_per_developer.name') -%></h3>
<% if assignees.size ==0 %>
- <span class="empty_widget"><%= message('widget.unresolved_issues_per_assignee.name') -%></span>
+ <span class="empty_widget"><%= message('widget.reviews_per_developer.name') -%></span>
<% else %>
<div id="<%= div_id -%>">
%>
<tr class="<%= cycle 'even', 'odd', :name => (div_id) -%>">
<td class="max-width">
- <%= link_to message('widget.unresolved_issues_per_assignee.not_assigned'),
+ <%= link_to message('widget.reviews_per_developer.not_assigned'),
{:controller => 'issues', :action => 'search', :assigned => 'false'}.merge(options) -%>
</td>
<td class="nowrap">