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
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/groups/milestones_controller.rb7
-rw-r--r--app/views/groups/milestones/index.html.haml0
-rw-r--r--app/views/layouts/nav/_group.html.haml5
3 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/groups/milestones_controller.rb b/app/controllers/groups/milestones_controller.rb
new file mode 100644
index 00000000000..fc538105125
--- /dev/null
+++ b/app/controllers/groups/milestones_controller.rb
@@ -0,0 +1,7 @@
+class Groups::MilestonesController < ApplicationController
+ layout 'group'
+
+ def index
+ @group = Group.find_by(path: params[:group_id])
+ end
+end
diff --git a/app/views/groups/milestones/index.html.haml b/app/views/groups/milestones/index.html.haml
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/app/views/groups/milestones/index.html.haml
diff --git a/app/views/layouts/nav/_group.html.haml b/app/views/layouts/nav/_group.html.haml
index d306e1eeb54..5fa14bd0d9b 100644
--- a/app/views/layouts/nav/_group.html.haml
+++ b/app/views/layouts/nav/_group.html.haml
@@ -12,6 +12,11 @@
Merge Requests
- if current_user
%span.count= current_user.cared_merge_requests.opened.of_group(@group).count
+ = nav_link(path: 'groups#milestones') do
+ = link_to merge_requests_group_path(@group) do
+ Milestones
+ - if current_user
+ %span.count= current_user.cared_merge_requests.opened.of_group(@group).count
= nav_link(path: 'groups#members') do
= link_to "Members", members_group_path(@group)