BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
642f9f4a
Commit
642f9f4a
authored
Jun 10, 2013
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrum view style milestone view.
parent
d0357f3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
20 deletions
+21
-20
milestones.js.coffee
app/assets/javascripts/milestones.js.coffee
+0
-7
issue.rb
app/models/issue.rb
+2
-0
_issues.html.haml
app/views/milestones/_issues.html.haml
+13
-0
show.html.haml
app/views/milestones/show.html.haml
+6
-13
No files found.
app/assets/javascripts/milestones.js.coffee
View file @
642f9f4a
$
->
$
(
'.milestone-issue-filter li[data-closed]'
).
addClass
(
'hide'
)
$
(
'.milestone-issue-filter ul.nav li a'
).
click
->
$
(
'.milestone-issue-filter li'
).
toggleClass
(
'active'
)
$
(
'.milestone-issue-filter li[data-closed]'
).
toggleClass
(
'hide'
)
false
$
(
'.milestone-merge-requests-filter li[data-closed]'
).
addClass
(
'hide'
)
$
(
'.milestone-merge-requests-filter ul.nav li a'
).
click
->
...
...
app/models/issue.rb
View file @
642f9f4a
...
...
@@ -28,6 +28,8 @@ class Issue < ActiveRecord::Base
scope
:cared
,
->
(
user
)
{
where
(
assignee_id:
user
)
}
scope
:authored
,
->
(
user
)
{
where
(
author_id:
user
)
}
scope
:open_for
,
->
(
user
)
{
opened
.
assigned
(
user
)
}
scope
:assigned
,
where
(
"assignee_id IS NOT NULL"
)
scope
:unassigned
,
where
(
"assignee_id IS NULL"
)
state_machine
:state
,
initial: :opened
do
event
:close
do
...
...
app/views/milestones/_issues.html.haml
0 → 100644
View file @
642f9f4a
.span6
.ui-box.milestone-issue-filter
.title
%ul
.nav.nav-pills
%li
=
issues
.
first
%ul
.well-list
-
issues
.
second
.
each
do
|
issue
|
%li
{
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
]
\ No newline at end of file
app/views/milestones/show.html.haml
View file @
642f9f4a
...
...
@@ -56,20 +56,11 @@
.row
.span6
.ui-box.milestone-issue-filter
.title
%ul
.nav.nav-pills
%li
.active
=
link_to
(
'Open Issues'
,
'#'
)
%li
=
link_to
(
'All Issues'
,
'#'
)
%ul
.well-list
-
@issues
.
each
do
|
issue
|
%li
{
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
]
=
render
(
:partial
=>
'issues'
,
:object
=>
[
'Unstarted Issues (open and unassigned)'
,
@issues
.
opened
.
unassigned
])
=
render
(
:partial
=>
'issues'
,
:object
=>
[
'Ongoing Issues (open and assigned) '
,
@issues
.
opened
.
assigned
])
.row
.span6
.ui-box.milestone-merge-requests-filter
.title
...
...
@@ -84,6 +75,8 @@
–
=
link_to_gfm
truncate
(
merge_request
.
title
,
length:
60
),
[
@project
,
merge_request
]
=
render
(
:partial
=>
'issues'
,
:object
=>
[
'Completed Issues (closed)'
,
@issues
.
closed
])
%hr
%h6
Participants:
%div
...
...
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