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
|
||||
%table{:class => "table table-bordered table-condensed table-hover"}
|
||||
%tr
|
||||
%th #
|
||||
%th= :author.t
|
||||
%th= :commits.t
|
||||
%th= :insertions.t
|
||||
|
@ -29,6 +30,7 @@
|
|||
- sorted_authors = repo.authors.sort_by { |a| -a.commits.size}
|
||||
- sorted_authors.each_with_index do |author, i|
|
||||
%tr
|
||||
%th= i+1
|
||||
%th= author.name
|
||||
%td= author.commits.size
|
||||
%td= author.insertions
|
||||
|
|
Loading…
Reference in a new issue