From 6eacc3d1eab02885c35667cd8abab13ad344b4ef Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 22 May 2013 14:29:32 +0200 Subject: [PATCH] SONAR-3755 various improvements on plan and assign actions * display deadline besides the action plans * unplan button * unassign button * Ruby API to easily format java or ruby dates --- .../resources/org/sonar/l10n/core.properties | 1 + .../sonar/core/issue/db/ActionPlanMapper.xml | 1 + .../issues_action_plans_controller.rb | 6 +---- .../WEB-INF/app/helpers/application_helper.rb | 25 ++++++++++++++----- .../app/views/issue/_plan_form.html.erb | 4 +-- .../views/issues_action_plans/index.html.erb | 2 +- 6 files changed, 25 insertions(+), 14 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 5658dd3d0bb..138a4e1676a 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -546,6 +546,7 @@ issue.set_severity=Set Severity issue.set_severity.submit=Set Severity issue.do_plan=Plan issue.plan.submit=Plan +issue.unplanned=Unplanned issue.unplan.submit=Unplan issue.plan_must_be_created_first=An action plan should be first created to plan the remediation effort of this issue. issue.status.REOPENED=Reopened diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/ActionPlanMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/ActionPlanMapper.xml index 663284e21ac..2e091afd2ba 100644 --- a/sonar-core/src/main/resources/org/sonar/core/issue/db/ActionPlanMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/ActionPlanMapper.xml @@ -78,6 +78,7 @@ and ap.status='OPEN' and ap.project_id=p.id + order by deadline