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
Jérome Perrin
gitlab-ce
Commits
aaba9933
Commit
aaba9933
authored
Jun 25, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skeleton of the group milestone index page.
parent
ca6fd884
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
0 deletions
+58
-0
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+12
-0
app/views/groups/_filter.html.haml
app/views/groups/_filter.html.haml
+12
-0
app/views/groups/milestones/_milestone.html.haml
app/views/groups/milestones/_milestone.html.haml
+13
-0
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+21
-0
No files found.
app/helpers/groups_helper.rb
View file @
aaba9933
...
@@ -31,6 +31,18 @@ module GroupsHelper
...
@@ -31,6 +31,18 @@ module GroupsHelper
end
end
title
title
end
def
group_filter_path
(
entity
,
options
=
{})
exist_opts
=
{
state:
params
[
:state
],
scope:
params
[
:scope
]
}
options
=
exist_opts
.
merge
(
options
)
path
=
request
.
path
path
<<
"?
#{
options
.
to_param
}
"
path
end
end
end
end
app/views/groups/_filter.html.haml
0 → 100644
View file @
aaba9933
=
form_tag
group_filter_path
(
entity
),
method:
'get'
do
%fieldset
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
!
params
[
:status
])}
=
link_to
group_filter_path
(
entity
,
status:
nil
)
do
Active
%li
{
class:
(
"active"
if
params
[
:status
]
==
'closed'
)}
=
link_to
group_filter_path
(
entity
,
status:
'closed'
)
do
Closed
%li
{
class:
(
"active"
if
params
[
:status
]
==
'all'
)}
=
link_to
group_filter_path
(
entity
,
status:
'all'
)
do
All
app/views/groups/milestones/_milestone.html.haml
0 → 100644
View file @
aaba9933
-
if
@milestones
.
any?
-
@issues
.
group_by
(
&
:project
).
each
do
|
group
|
.panel.panel-default.panel-small
-
project
=
group
[
0
]
.panel-heading
=
link_to_project
project
=
link_to
'show all'
,
project_issues_path
(
project
),
class:
'pull-right'
%ul
.well-list.issues-list
-
group
[
1
].
each
do
|
issue
|
=
render
'projects/issues/issue'
,
issue:
issue
=
paginate
@issues
,
theme:
"gitlab"
app/views/groups/milestones/index.html.haml
View file @
aaba9933
%h3
.page-title
Milestones
%span
.pull-right
milestones
%p
.light
Only milestones from
%strong
#{
@group
.
name
}
group are listed here.
%hr
.row
.fixed.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side
=
render
'groups/filter'
,
entity:
'milestones'
.col-md-9
-
if
@milestones
.
blank?
.nothing-here-block
No milestones to show
-
else
=
render
'groups/milestones/milestone'
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