summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-01-19 11:58:00 +0100
committerJan Provaznik <jprovaznik@gitlab.com>2018-01-19 11:58:00 +0100
commita31a42abe6adddf20e34c89062f7a39794760f39 (patch)
treeb63a595104098dfedffe56d60ed6a73943769650
parent5ce98738191faed134ba5d1187e333c69e2a4614 (diff)
downloadgitlab-ce-3559-group-level-roadmap.tar.gz
Added roadmap route and controller3559-group-level-roadmap
This assumes that a single roadmap is available for a group (so singular is used for naming the controller and only show action is defined). If it turns out we need multiple roadmaps we can update the route/controller to look like e.g. boards controller.
-rw-r--r--app/controllers/groups/roadmap_controller.rb9
-rw-r--r--app/views/groups/roadmap/show.html.haml1
-rw-r--r--config/routes/group.rb2
3 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/groups/roadmap_controller.rb b/app/controllers/groups/roadmap_controller.rb
new file mode 100644
index 00000000000..2f7700b0a74
--- /dev/null
+++ b/app/controllers/groups/roadmap_controller.rb
@@ -0,0 +1,9 @@
+module Groups
+ class RoadmapController < Groups::ApplicationController
+ before_action :group
+
+ def show
+ # show roadmap for a group
+ end
+ end
+end
diff --git a/app/views/groups/roadmap/show.html.haml b/app/views/groups/roadmap/show.html.haml
new file mode 100644
index 00000000000..3230e954f85
--- /dev/null
+++ b/app/views/groups/roadmap/show.html.haml
@@ -0,0 +1 @@
+A roadmap
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 2f3ab504869..6da5279f8f5 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -95,6 +95,8 @@ constraints(GroupUrlConstrainer.new) do
path
end
get 'boards(/*extra_params)', as: :legacy_ee_group_boards_redirect, to: legacy_ee_group_boards_redirect
+
+ resource :roadmap, only: [:show], controller: 'roadmap'
## EE-specific
end