aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-10 14:13:46 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-07-10 16:23:00 +0600
commitf692f89731e29cb1d01b1545e64fd12f381bdb13 (patch)
tree77ad6e3ba82118e297197ba03ca3f8bb16948f1a
parentf1fa4be793dcadbd6628150d24e441c2095e0a54 (diff)
downloadsonarqube-f692f89731e29cb1d01b1545e64fd12f381bdb13.tar.gz
sonarqube-f692f89731e29cb1d01b1545e64fd12f381bdb13.zip
Issue when trying to plan an issue and no action plan exists
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties3
-rw-r--r--sonar-server/src/main/hbs/issues/plan-form.hbs8
2 files changed, 3 insertions, 8 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index caee1680124..a7ee0612df5 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -634,8 +634,7 @@ issue.do_plan=Plan
issue.plan.submit=Plan
issue.unplanned=Unplanned
issue.unplan.submit=Unplan
-issue.plan.error.plan_must_be_created_first_for_admin=You must <a href="{0}">define</a> at least one action plan on this project.
-issue.plan.error.plan_must_be_created_first_for_other=At least one action plan must be created on this project. Please contact your project administrator.
+issue.plan.error.plan_must_be_created_first=At least one action plan must be created on this project. Please contact your project administrator if you don't have the permission to do it.
issue.status.REOPENED=Reopened
issue.status.RESOLVED=Resolved
issue.status.OPEN=Open
diff --git a/sonar-server/src/main/hbs/issues/plan-form.hbs b/sonar-server/src/main/hbs/issues/plan-form.hbs
index 3d96e6e6a72..341068e5a96 100644
--- a/sonar-server/src/main/hbs/issues/plan-form.hbs
+++ b/sonar-server/src/main/hbs/issues/plan-form.hbs
@@ -11,10 +11,6 @@
</select>
<input id="issue-plan-submit" type="submit" value="{{t 'issue.plan.submit'}}">&nbsp;
{{else}}
- <% if is_admin? %>
- <span class="error">{{t 'issue.plan.error.plan_must_be_created_first_for_admin'}}</span>
- <% else %>
- <span class="error">{{t 'issue.plan.error.plan_must_be_created_first_for_other'}}</span>
- <% end %>
+ <span class="error">{{t 'issue.plan.error.plan_must_be_created_first'}}</span>
{{/if}}
-<a id="issue-plan-cancel" class="action">{{t 'cancel'}}</a> \ No newline at end of file
+<a id="issue-plan-cancel" class="action">{{t 'cancel'}}</a>