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
Tatuya Kamada
gitlab-ce
Commits
f7ea649f
Commit
f7ea649f
authored
Jun 14, 2013
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement (style) suggestions.
parent
6637c1e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/issue.rb
app/models/issue.rb
+2
-2
app/views/milestones/show.html.haml
app/views/milestones/show.html.haml
+3
-3
No files found.
app/models/issue.rb
View file @
f7ea649f
...
...
@@ -28,8 +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"
)
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/show.html.haml
View file @
f7ea649f
...
...
@@ -56,9 +56,9 @@
.row
=
render
(
partial:
'issues'
,
:locals
=>
{
title:
'Unstarted Issues (open and unassigned)'
,
issues:
@issues
.
opened
.
unassigned
})
=
render
(
partial:
'issues'
,
locals:
{
title:
'Unstarted Issues (open and unassigned)'
,
issues:
@issues
.
opened
.
unassigned
})
=
render
(
partial:
'issues'
,
:locals
=>
{
title:
'Ongoing Issues (open and assigned)'
,
issues:
@issues
.
opened
.
assigned
})
=
render
(
partial:
'issues'
,
locals:
{
title:
'Ongoing Issues (open and assigned)'
,
issues:
@issues
.
opened
.
assigned
})
.row
.span6
...
...
@@ -75,7 +75,7 @@
–
=
link_to_gfm
truncate
(
merge_request
.
title
,
length:
60
),
[
@project
,
merge_request
]
=
render
(
:partial
=>
'issues'
,
:locals
=>
{
title:
'Completed Issues (closed)'
,
issues:
@issues
.
closed
})
=
render
(
:partial
=>
'issues'
,
locals:
{
title:
'Completed Issues (closed)'
,
issues:
@issues
.
closed
})
%hr
%h6
Participants:
...
...
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