Sha256: ab828337406990976c99612c70c56a7309301b4cf7170fee6390d6912cbf5fdc
Contents?: true
Size: 1005 Bytes
Versions: 3
Compression:
Stored size: 1005 Bytes
Contents
:javascript $(document).ready(function() { $("#author_table").tablesorter({sortList: [[1, 1]]}); }); - block(:authors) do .blocktable %table#author_table.tablesorter.striped %thead %tr %th Author %th Commits %th Percent %th Files added %th Files deleted %th Lines added %th Lines deleted %th First commit %th Last commit %tbody - stats.author_stats.sort{ |a, b| a[1].commits <=> b[1].commits }.reverse[0, author_count].each do |author, commits| %tr %td&= author %td&= commits.commits %td&= '%.2f%%' % (commits.commits * 100.0 / stats.num_commits.to_f) %td&= commits.files_added %td&= commits.files_deleted %td&= commits.lines_added %td&= commits.lines_deleted %td&= commits.first_commit.strftime('%Y-%m-%d') %td&= commits.last_commit.strftime('%Y-%m-%d')
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gitstats-rb-2.0.0 | template/gnuplot/partials/authors.haml |
gitstats-ruby-1.0.1 | template/partials/authors.haml |
gitstats-ruby-1.0.0 | template/partials/authors.haml |