mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
numbering authors in best_authors page
This commit is contained in:
parent
8d3ff86ace
commit
8f62957ae5
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
- if page == :best_authors
|
- if page == :best_authors
|
||||||
%table{:class => "table table-bordered table-condensed table-hover"}
|
%table{:class => "table table-bordered table-condensed table-hover"}
|
||||||
%tr
|
%tr
|
||||||
|
%th #
|
||||||
%th= :author.t
|
%th= :author.t
|
||||||
%th= :commits.t
|
%th= :commits.t
|
||||||
%th= :insertions.t
|
%th= :insertions.t
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
- sorted_authors = repo.authors.sort_by { |a| -a.commits.size}
|
- sorted_authors = repo.authors.sort_by { |a| -a.commits.size}
|
||||||
- sorted_authors.each_with_index do |author, i|
|
- sorted_authors.each_with_index do |author, i|
|
||||||
%tr
|
%tr
|
||||||
|
%th= i+1
|
||||||
%th= author.name
|
%th= author.name
|
||||||
%td= author.commits.size
|
%td= author.commits.size
|
||||||
%td= author.insertions
|
%td= author.insertions
|
||||||
|
|
Loading…
Reference in a new issue