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 @@ ...@@ -12,6 +12,11 @@
Merge Requests Merge Requests
- if current_user - if current_user
%span.count= current_user.cared_merge_requests.opened.of_group(@group).count %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 = nav_link(path: 'groups#members') do
= link_to "Members", members_group_path(@group) = link_to "Members", members_group_path(@group)
......
...@@ -151,8 +151,10 @@ Gitlab::Application.routes.draw do ...@@ -151,8 +151,10 @@ Gitlab::Application.routes.draw do
end end
resources :users_groups, only: [:create, :update, :destroy] resources :users_groups, only: [:create, :update, :destroy]
scope module: :groups do scope module: :groups do
resource :avatar, only: [:destroy] resource :avatar, only: [:destroy]
resources :milestones
end end
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