Add group milestones routes and controller.

This commit is contained in:
Marin Jankovski 2014-06-25 11:15:27 +02:00
parent 76e36dd253
commit ca6fd8841e
4 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,7 @@
class Groups::MilestonesController < ApplicationController
layout 'group'
def index
@group = Group.find_by(path: params[:group_id])
end
end

View file

@ -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)

View file

@ -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