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
iv
gitlab-ce
Commits
958497fe
Commit
958497fe
authored
Nov 28, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue count
parent
017dfaee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app/models/issue.rb
app/models/issue.rb
+4
-0
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+2
-2
No files found.
app/models/issue.rb
View file @
958497fe
...
@@ -33,6 +33,10 @@ class Issue < ActiveRecord::Base
...
@@ -33,6 +33,10 @@ class Issue < ActiveRecord::Base
acts_as_list
acts_as_list
def
self
.
open_for
(
user
)
opened
.
assigned
(
user
)
end
def
today?
def
today?
Date
.
today
==
created_at
.
to_date
Date
.
today
==
created_at
.
to_date
end
end
...
...
app/views/layouts/project.html.haml
View file @
958497fe
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
%span
{
:class
=>
"number"
}=
@project
.
users_projects
.
count
%span
{
:class
=>
"number"
}=
@project
.
users_projects
.
count
=
link_to
project_issues_filter_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
=
link_to
project_issues_filter_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
Issues
Issues
-
if
@project
.
issues
.
assigned
(
current_user
).
count
>
0
-
if
@project
.
issues
.
open_for
(
current_user
).
count
>
0
%span
{
:class
=>
"number"
}=
@project
.
issues
.
assigned
(
current_user
).
count
%span
{
:class
=>
"number"
}=
@project
.
issues
.
open_for
(
current_user
).
count
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
Wall
Wall
-
if
@project
.
common_notes
.
today
.
count
>
0
-
if
@project
.
common_notes
.
today
.
count
>
0
...
...
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