gitlab-org--gitlab-foss/app/views/repositories/stats.html.haml

37 lines
838 B
Plaintext
Raw Normal View History

2012-11-10 21:08:47 +00:00
= render "commits/head"
.row
.span5
%h4
2012-11-13 19:26:36 +00:00
Stats:
2012-11-10 21:08:47 +00:00
%p
%b Total commits:
%span= @stats.commits_count
%p
2013-01-03 19:09:18 +00:00
%b Total files in #{@repository.root_ref}:
2012-11-10 21:08:47 +00:00
%span= @stats.files_count
%p
%b Authors:
%span= @stats.authors_count
%br
%div#activity-chart
.span7
2012-11-10 21:33:10 +00:00
%h4 Top 50 Committers:
2012-11-10 21:08:47 +00:00
%ol.styled
2012-11-10 21:33:10 +00:00
- @stats.authors[0...50].each do |author|
2012-11-10 21:08:47 +00:00
%li
= image_tag gravatar_icon(author.email, 16), class: 'avatar s16'
= author.name
%small.light= author.email
2013-01-30 14:40:43 +00:00
.pull-right
2012-11-10 21:08:47 +00:00
= author.commits
:javascript
$(function(){
var labels = [#{@graph.labels.to_json}];
2012-11-13 19:26:36 +00:00
var commits = [#{@graph.commits.join(', ')}];
var title = "Commit activity for last #{@graph.weeks} weeks";
Chart.init(labels, commits, title);
2012-11-10 21:08:47 +00:00
})