Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ca6fd884
Commit
ca6fd884
authored
Jun 25, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group milestones routes and controller.
parent
76e36dd2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
app/controllers/groups/milestones_controller.rb
app/controllers/groups/milestones_controller.rb
+7
-0
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+0
-0
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+5
-0
config/routes.rb
config/routes.rb
+2
-0
No files found.
app/controllers/groups/milestones_controller.rb
0 → 100644
View file @
ca6fd884
class
Groups::MilestonesController
<
ApplicationController
layout
'group'
def
index
@group
=
Group
.
find_by
(
path:
params
[
:group_id
])
end
end
app/views/groups/milestones/index.html.haml
0 → 100644
View file @
ca6fd884
app/views/layouts/nav/_group.html.haml
View file @
ca6fd884
...
...
@@ -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
)
...
...
config/routes.rb
View file @
ca6fd884
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment