From a31a42abe6adddf20e34c89062f7a39794760f39 Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Fri, 19 Jan 2018 11:58:00 +0100 Subject: Added roadmap route and controller 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. --- app/controllers/groups/roadmap_controller.rb | 9 +++++++++ app/views/groups/roadmap/show.html.haml | 1 + config/routes/group.rb | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 app/controllers/groups/roadmap_controller.rb create mode 100644 app/views/groups/roadmap/show.html.haml 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 -- cgit v1.2.3