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
Kazuhiko Shiozaki
gitlab-ce
Commits
e1afea77
Commit
e1afea77
authored
Jun 25, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show title of milestone.
parent
aaba9933
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
app/controllers/groups/milestones_controller.rb
app/controllers/groups/milestones_controller.rb
+3
-0
app/views/groups/milestones/_milestone.html.haml
app/views/groups/milestones/_milestone.html.haml
+0
-13
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+15
-4
No files found.
app/controllers/groups/milestones_controller.rb
View file @
e1afea77
...
@@ -3,5 +3,8 @@ class Groups::MilestonesController < ApplicationController
...
@@ -3,5 +3,8 @@ class Groups::MilestonesController < ApplicationController
def
index
def
index
@group
=
Group
.
find_by
(
path:
params
[
:group_id
])
@group
=
Group
.
find_by
(
path:
params
[
:group_id
])
project_ids
=
@group
.
projects
project_milestones
=
Milestone
.
where
(
project_id:
project_ids
)
@milestones
=
project_milestones
end
end
end
end
app/views/groups/milestones/_milestone.html.haml
deleted
100644 → 0
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 @
e1afea77
...
@@ -15,7 +15,18 @@
...
@@ -15,7 +15,18 @@
.col-md-3.responsive-side
.col-md-3.responsive-side
=
render
'groups/filter'
,
entity:
'milestones'
=
render
'groups/filter'
,
entity:
'milestones'
.col-md-9
.col-md-9
-
if
@milestones
.
blank?
.panel.panel-default
.nothing-here-block
No milestones to show
%ul
.well-list
-
else
-
if
@milestones
.
blank?
=
render
'groups/milestones/milestone'
%li
.nothing-here-block
No milestones to show
-
else
-
@milestones
.
group_by
(
&
:title
).
each
do
|
milestone
|
%li
{
class:
"milestone milestone-open"
,
id:
1
}
.pull-right
=
link_to
root_path
,
class:
"btn btn-small edit-milestone-link btn-grouped"
do
%i
.icon-edit
Edit
=
link_to
'Close Milestone'
,
root_path
,
method: :put
,
remote:
true
,
class:
"btn btn-small btn-remove"
%h4
=
link_to_gfm
truncate
(
milestone
.
first
,
length:
100
),
root_path
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