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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
ace81635
Commit
ace81635
authored
Sep 04, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add toggle to show closed issues on Milestones#show
Progress on #1167
parent
2b7fd29b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
app/assets/javascripts/milestones.js.coffee
app/assets/javascripts/milestones.js.coffee
+7
-0
app/assets/stylesheets/gitlab_bootstrap/tables.scss
app/assets/stylesheets/gitlab_bootstrap/tables.scss
+5
-0
app/controllers/milestones_controller.rb
app/controllers/milestones_controller.rb
+1
-1
app/views/milestones/show.html.haml
app/views/milestones/show.html.haml
+6
-4
No files found.
app/assets/javascripts/milestones.js.coffee
0 → 100644
View file @
ace81635
$
->
$
(
'.milestone-issue-filter td[data-closed]'
).
addClass
(
'hide'
)
$
(
'.milestone-issue-filter ul.nav li a'
).
click
->
$
(
'.milestone-issue-filter li'
).
toggleClass
(
'active'
)
$
(
'.milestone-issue-filter td[data-closed]'
).
toggleClass
(
'hide'
)
false
app/assets/stylesheets/gitlab_bootstrap/tables.scss
View file @
ace81635
...
...
@@ -11,6 +11,11 @@ table {
border-bottom
:
1px
solid
#bbb
;
text-shadow
:
0
1px
1px
#fff
;
@include
bg-dark-gray-gradient
;
ul
.nav
{
text-shadow
:
none
;
margin
:
0
;
}
}
th
,
td
{
...
...
app/controllers/milestones_controller.rb
View file @
ace81635
...
...
@@ -30,7 +30,7 @@ class MilestonesController < ProjectResourceController
end
def
show
@issues
=
@milestone
.
issues
.
opened
.
page
(
params
[
:page
]).
per
(
40
)
@issues
=
@milestone
.
issues
@users
=
@milestone
.
participants
respond_to
do
|
format
|
...
...
app/views/milestones/show.html.haml
View file @
ace81635
...
...
@@ -45,18 +45,20 @@
.row
.span6
%table
%table
.milestone-issue-filter
%thead
%th
Open Issues
%th
%ul
.nav.nav-pills
%li
.active.open
=
link_to
(
'Open Issues'
,
'#'
)
%li
.all
=
link_to
(
'All Issues'
,
'#'
)
-
@issues
.
each
do
|
issue
|
%tr
%td
%td
{
data:
{
closed:
issue
.
closed
}}
=
link_to
[
@project
,
issue
]
do
%span
.badge.badge-info
##{issue.id}
–
=
link_to_gfm
truncate
(
issue
.
title
,
length:
60
),
[
@project
,
issue
]
%br
=
paginate
@issues
,
theme:
"gitlab"
.span6
%table
...
...
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