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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
77bde9a0
Commit
77bde9a0
authored
Oct 04, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notes count to commits in lists.
parent
679d0d6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+5
-0
app/views/commits/_commit.html.haml
app/views/commits/_commit.html.haml
+7
-0
No files found.
app/assets/stylesheets/sections/commits.scss
View file @
77bde9a0
...
...
@@ -203,6 +203,11 @@
@extend
.cgray
;
}
.notes_count
{
float
:right
;
margin
:
-6px
8px
6px
;
}
code
{
background
:
#FCEEC1
;
color
:
$style_color
;
...
...
app/views/commits/_commit.html.haml
View file @
77bde9a0
...
...
@@ -13,3 +13,10 @@
=
time_ago_in_words
(
commit
.
committed_date
)
ago
%span
.notes_count
-
notes
=
@project
.
commit_notes
(
commit
)
+
@project
.
commit_line_notes
(
commit
)
-
if
notes
.
any?
%span
.btn.small.disabled.grouped
%i
.icon-comment
=
notes
.
count
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