Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-17 18:16:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-17 18:16:12 +0300
commit8432be20de0a29f4dde4980efe37d013c9e90034 (patch)
treeaf163db5a7c8ac17ca4da59d505c75552452956c /app/controllers/concerns/work_items_hierarchy.rb
parentdd33e917374b611cd5a596c7fa51b47af6e153f6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/concerns/work_items_hierarchy.rb')
-rw-r--r--app/controllers/concerns/work_items_hierarchy.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/controllers/concerns/work_items_hierarchy.rb b/app/controllers/concerns/work_items_hierarchy.rb
new file mode 100644
index 00000000000..6008256408c
--- /dev/null
+++ b/app/controllers/concerns/work_items_hierarchy.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+module WorkItemsHierarchy
+ extend ActiveSupport::Concern
+
+ # rubocop:disable Gitlab/ModuleWithInstanceVariables
+ def planning_hierarchy
+ return render_404 unless Feature.enabled?(:work_items_hierarchy, @project, default_enabled: :yaml)
+
+ render 'shared/planning_hierarchy'
+ end
+ # rubocop:enable Gitlab/ModuleWithInstanceVariables
+end
+
+WorkItemsHierarchy.prepend_mod_with('WorkItemsHierarchy')