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
Jérome Perrin
gitlab-ce
Commits
278d2aba
Commit
278d2aba
authored
Apr 03, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show commits count when hover chart on stats page
parent
d9ab7ba6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
app/assets/javascripts/chart.js.coffee
app/assets/javascripts/chart.js.coffee
+10
-1
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+5
-0
app/views/repositories/stats.html.haml
app/views/repositories/stats.html.haml
+5
-6
No files found.
app/assets/javascripts/chart.js.coffee
View file @
278d2aba
...
...
@@ -4,9 +4,18 @@
init
:
(
labels
,
values
,
title
)
->
r
=
Raphael
(
'activity-chart'
)
fin
=
->
@
flag
=
r
.
popup
(
@
bar
.
x
,
@
bar
.
y
,
@
bar
.
value
or
"0"
).
insertBefore
(
this
)
fout
=
->
@
flag
.
animate
opacity
:
0
,
300
,
->
@
remove
()
r
.
text
(
160
,
10
,
title
).
attr
font
:
"13px sans-serif"
r
.
barchart
(
10
,
10
,
400
,
16
0
,
10
,
20
,
560
,
20
0
,
[
values
],
{
colors
:
[
"#456"
]}
).
label
(
labels
,
true
)
.
hover
(
fin
,
fout
)
app/assets/stylesheets/common.scss
View file @
278d2aba
...
...
@@ -555,3 +555,8 @@ img.emoji {
text-shadow
:
0
1px
1px
#111
;
font-weight
:
normal
;
}
.chart
{
overflow
:
hidden
;
height
:
220px
;
}
app/views/repositories/stats.html.haml
View file @
278d2aba
=
render
"commits/head"
.row
.span
5
%
h4
Stats:
.span
6
%
div
#activity-chart
.chart
%hr
%p
%b
Total commits:
%span
=
@stats
.
commits_count
...
...
@@ -13,9 +13,8 @@
%b
Authors:
%span
=
@stats
.
authors_count
%br
%div
#activity-chart
.span7
.span6
%h4
Top 50 Committers:
%ol
.styled
-
@stats
.
authors
[
0
...
50
].
each
do
|
author
|
...
...
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