Improve Commits stats code
This commit is contained in:
parent
b28ab8962b
commit
f0a6fbaae3
2 changed files with 11 additions and 12 deletions
|
@ -2,12 +2,12 @@
|
|||
.row
|
||||
.span5
|
||||
%h4
|
||||
Stats for #{@project.root_ref}:
|
||||
Stats:
|
||||
%p
|
||||
%b Total commits:
|
||||
%span= @stats.commits_count
|
||||
%p
|
||||
%b Total files:
|
||||
%b Total files in #{@project.root_ref}:
|
||||
%span= @stats.files_count
|
||||
%p
|
||||
%b Authors:
|
||||
|
@ -30,10 +30,12 @@
|
|||
:javascript
|
||||
$(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,
|
||||
[[#{@graph.commits.join(', ')}]]
|
||||
[commits],
|
||||
{colors:["#456"]}
|
||||
).label(labels, true);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue