aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-15 09:51:20 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-15 09:51:20 +0200
commit89b876906c9e36219bcdcfe760f4bffff8af4715 (patch)
treec1b8a29fb63883d6fdfbb408f820fcbc2426cfb1 /plugins
parentad9d1149559aa8a5b3a608d00b31901e9f5a590c (diff)
downloadsonarqube-89b876906c9e36219bcdcfe760f4bffff8af4715.tar.gz
sonarqube-89b876906c9e36219bcdcfe760f4bffff8af4715.zip
SONAR-5452 Do not display action plan widget on none project dashboard
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
index cb5b925d041..db9c35fa315 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
@@ -1,5 +1,6 @@
<%
- if has_role?(:user, @project)
+ # This widget should only be display on root projects, not on modules
+ if @project.root_project == @project && has_role?(:user, @project)
action_plans = Internal.issues.findActionPlanStats(@resource.key)
open_action_plans = action_plans.select {|plan| plan.isOpen()}