Add group milestones routes and controller.
This commit is contained in:
parent
76e36dd253
commit
ca6fd8841e
4 changed files with 14 additions and 0 deletions
7
app/controllers/groups/milestones_controller.rb
Normal file
7
app/controllers/groups/milestones_controller.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Groups::MilestonesController < ApplicationController
|
||||
layout 'group'
|
||||
|
||||
def index
|
||||
@group = Group.find_by(path: params[:group_id])
|
||||
end
|
||||
end
|
0
app/views/groups/milestones/index.html.haml
Normal file
0
app/views/groups/milestones/index.html.haml
Normal 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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue