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
1029f410
Commit
1029f410
authored
Mar 17, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues count on project view
parent
f2ba4e3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
application_helper.rb
app/helpers/application_helper.rb
+1
-1
_project.html.haml
app/views/layouts/nav/_project.html.haml
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
1029f410
...
...
@@ -301,7 +301,7 @@ module ApplicationHelper
if
project
.
nil?
nil
elsif
current_controller?
(
:issues
)
project
.
issues
.
send
(
entity
).
count
project
.
issues
.
visible_to_user
(
current_user
).
send
(
entity
).
count
elsif
current_controller?
(
:merge_requests
)
project
.
merge_requests
.
send
(
entity
).
count
end
...
...
app/views/layouts/nav/_project.html.haml
View file @
1029f410
...
...
@@ -67,7 +67,7 @@
%span
Issues
-
if
@project
.
default_issues_tracker?
%span
.count.issue_counter
=
number_with_delimiter
(
@project
.
issues
.
opened
.
count
)
%span
.count.issue_counter
=
number_with_delimiter
(
@project
.
issues
.
visible_to_user
(
current_user
).
opened
.
count
)
-
if
project_nav_tab?
:merge_requests
=
nav_link
(
controller: :merge_requests
)
do
...
...
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