Commit ca6fd884 authored by Marin Jankovski's avatar Marin Jankovski

Add group milestones routes and controller.

parent 76e36dd2
class Groups::MilestonesController < ApplicationController
layout 'group'
def index
@group = Group.find_by(path: params[:group_id])
end
end
......@@ -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)
......
......@@ -151,8 +151,10 @@ Gitlab::Application.routes.draw do
end
resources :users_groups, only: [:create, :update, :destroy]
scope module: :groups do
resource :avatar, only: [:destroy]
resources :milestones
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment