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
dad576a7
Commit
dad576a7
authored
Dec 18, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
afd747d4
bb0a47d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
app/models/issue.rb
app/models/issue.rb
+1
-4
app/views/snippets/_form.html.haml
app/views/snippets/_form.html.haml
+1
-1
No files found.
app/models/issue.rb
View file @
dad576a7
...
...
@@ -28,7 +28,7 @@ class Issue < ActiveRecord::Base
scope
:of_group
,
->
(
group
)
{
where
(
project_id:
group
.
project_ids
)
}
scope
:of_user_team
,
->
(
team
)
{
where
(
project_id:
team
.
project_ids
,
assignee_id:
team
.
member_ids
)
}
scope
:opened
,
->
{
with_state
(
:opened
)
}
scope
:opened
,
->
{
with_state
(
:opened
,
:reopened
)
}
scope
:closed
,
->
{
with_state
(
:closed
)
}
attr_accessible
:title
,
:assignee_id
,
:position
,
:description
,
...
...
@@ -56,9 +56,6 @@ class Issue < ActiveRecord::Base
state
:closed
end
# Both open and reopened issues should be listed as opened
scope
:opened
,
->
{
with_state
(
:opened
,
:reopened
)
}
# Mentionable overrides.
def
gfm_reference
...
...
app/views/snippets/_form.html.haml
View file @
dad576a7
...
...
@@ -25,7 +25,7 @@
=
f
.
radio_button
:private
,
false
%span
%strong
Public
(GitLab users can
can
see this snippet)
(GitLab users can see this snippet)
.control-group
.file-editor
...
...
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