2013-06-23 12:47:22 -04:00
|
|
|
= render "projects/commits/head"
|
2012-11-10 16:08:47 -05:00
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2013-04-03 16:32:36 -04:00
|
|
|
%div#activity-chart.chart
|
|
|
|
%hr
|
2012-11-10 16:08:47 -05:00
|
|
|
%p
|
|
|
|
%b Total commits:
|
2014-06-12 15:24:19 -04:00
|
|
|
%span= @repository.commit_count
|
2012-11-10 16:08:47 -05:00
|
|
|
%p
|
2013-01-03 14:09:18 -05:00
|
|
|
%b Total files in #{@repository.root_ref}:
|
2012-11-10 16:08:47 -05:00
|
|
|
%span= @stats.files_count
|
|
|
|
%p
|
|
|
|
%b Authors:
|
|
|
|
%span= @stats.authors_count
|
|
|
|
|
2013-04-03 16:32:36 -04:00
|
|
|
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2012-11-10 16:33:10 -05:00
|
|
|
%h4 Top 50 Committers:
|
2012-11-10 16:08:47 -05:00
|
|
|
%ol.styled
|
2012-11-10 16:33:10 -05:00
|
|
|
- @stats.authors[0...50].each do |author|
|
2012-11-10 16:08:47 -05:00
|
|
|
%li
|
2013-10-06 14:13:56 -04:00
|
|
|
= image_tag avatar_icon(author.email, 16), class: 'avatar s16', alt: ''
|
2012-11-10 16:08:47 -05:00
|
|
|
= author.name
|
|
|
|
%small.light= author.email
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
2012-11-10 16:08:47 -05:00
|
|
|
= author.commits
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
2013-05-02 04:46:45 -04:00
|
|
|
var labels = [#{@graph.labels.to_json}];
|
|
|
|
var commits = [#{@graph.commits.join(', ')}];
|
|
|
|
var title = "Commit activity for last #{@graph.weeks} weeks";
|
|
|
|
Chart.init(labels, commits, title);
|