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
dc809983
Commit
dc809983
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link issue/MR list item comments counter to comments
parent
d399ffa2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
_issue.html.haml
app/views/projects/issues/_issue.html.haml
+4
-4
_merge_request.html.haml
app/views/projects/merge_requests/_merge_request.html.haml
+4
-4
No files found.
app/views/projects/issues/_issue.html.haml
View file @
dc809983
...
@@ -18,13 +18,13 @@
...
@@ -18,13 +18,13 @@
-
note_count
=
issue
.
notes
.
user
.
count
-
note_count
=
issue
.
notes
.
user
.
count
-
if
note_count
>
0
-
if
note_count
>
0
%span
=
link_to
issue_path
(
issue
)
+
"#notes"
do
%i
.fa.fa-comments
=
icon
(
'comments'
)
=
note_count
=
note_count
-
else
-
else
%span
.issue-no-comments
=
link_to
issue_path
(
issue
)
+
"#notes"
,
class:
"issue-no-comments"
do
%i
.fa.fa-comments
=
icon
(
'comments'
)
=
0
=
0
.issue-info
.issue-info
...
...
app/views/projects/merge_requests/_merge_request.html.haml
View file @
dc809983
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
=
link_to_member
(
merge_request
.
source_project
,
merge_request
.
assignee
,
name:
false
,
title:
"Assigned to :name"
)
=
link_to_member
(
merge_request
.
source_project
,
merge_request
.
assignee
,
name:
false
,
title:
"Assigned to :name"
)
-
if
note_count
>
0
-
if
note_count
>
0
%span
=
link_to
merge_request_path
(
merge_request
)
+
"#notes"
do
%i
.fa.fa-comments
=
icon
(
'comments'
)
=
note_count
=
note_count
-
else
-
else
%span
.merge-request-no-comments
=
link_to
merge_request_path
(
merge_request
)
+
"#notes"
,
class:
"merge-request-no-comments"
do
%i
.fa.fa-comments
=
icon
(
'comments'
)
=
0
=
0
.merge-request-info
.merge-request-info
...
...
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