gitlab-org--gitlab-foss/app/views/projects/repositories/stats.html.haml
Dmitriy Zaporozhets 1b1a408a71
Convert span into col-md
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-30 23:55:15 +02:00

33 lines
817 B
Text

= render "projects/commits/head"
.row
.col-md-6
%div#activity-chart.chart
%hr
%p
%b Total commits:
%span= @stats.commits_count
%p
%b Total files in #{@repository.root_ref}:
%span= @stats.files_count
%p
%b Authors:
%span= @stats.authors_count
.col-md-6
%h4 Top 50 Committers:
%ol.styled
- @stats.authors[0...50].each do |author|
%li
= image_tag avatar_icon(author.email, 16), class: 'avatar s16', alt: ''
= author.name
%small.light= author.email
.pull-right
= author.commits
:javascript
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);