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
6d07a974
Commit
6d07a974
authored
Apr 03, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move js code related to repo barchart to chart.js.coffee
parent
3fba2114
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
chart.js.coffee
app/assets/javascripts/chart.js.coffee
+12
-0
stats.html.haml
app/views/repositories/stats.html.haml
+2
-7
No files found.
app/assets/javascripts/chart.js.coffee
0 → 100644
View file @
6d07a974
@
Chart
=
labels
:
[]
values
:
[]
init
:
(
labels
,
values
,
title
)
->
r
=
Raphael
(
'activity-chart'
)
r
.
text
(
160
,
10
,
title
).
attr
font
:
"13px sans-serif"
r
.
barchart
(
10
,
10
,
400
,
160
,
[
values
],
{
colors
:
[
"#456"
]}
).
label
(
labels
,
true
)
app/views/repositories/stats.html.haml
View file @
6d07a974
...
...
@@ -31,11 +31,6 @@
$
(
function
(){
var
labels
=
[
#{
@graph
.
labels
.
to_json
}
];
var
commits
=
[
#{
@graph
.
commits
.
join
(
', '
)
}
];
var
r
=
Raphael
(
'activity-chart'
);
r
.
text
(
160
,
10
,
"Commit activity for last
#{
@graph
.
weeks
}
weeks"
).
attr
({
font
:
"13px sans-serif"
});
r
.
barchart
(
10
,
10
,
400
,
160
,
[
commits
],
{
colors
:[
"#456"
]}
).
label
(
labels
,
true
);
var
title
=
"Commit activity for last
#{
@graph
.
weeks
}
weeks"
;
Chart
.
init
(
labels
,
commits
,
title
);
})
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