mirror of
https://github.com/tomgi/git_stats.git
synced 2024-11-11 05:36:29 +01:00
67 lines
2.8 KiB
Plaintext
67 lines
2.8 KiB
Plaintext
.tabbable.tabs-left
|
|
%ul.nav.nav-tabs
|
|
%li{class: page == :best_authors ? "active" : ""}
|
|
%a{href: 'best_authors.html'}= :best_authors.t
|
|
%li{class: page == :commits_sum_by_author_by_date ? "active" : ""}
|
|
%a{href: 'commits_sum_by_author_by_date.html'}= :commits_sum_by_author_by_date.t
|
|
%li{class: page == :changed_lines_by_author_by_date ? "active" : ""}
|
|
%a{href: 'changed_lines_by_author_by_date.html'}= :changed_lines_by_author_by_date.t
|
|
%li{class: page == :insertions_by_author_by_date ? "active" : ""}
|
|
%a{href: 'insertions_by_author_by_date.html'}= :insertions_by_author_by_date.t
|
|
%li{class: page == :deletions_by_author_by_date ? "active" : ""}
|
|
%a{href: 'deletions_by_author_by_date.html'}= :deletions_by_author_by_date.t
|
|
|
|
.tab-content
|
|
.tab-pane.active
|
|
.page-header
|
|
%h1.pagination-centered= page.t
|
|
|
|
- if page == :best_authors
|
|
%table{:class => "table table-bordered table-condensed table-hover"}
|
|
%tr
|
|
%th #
|
|
%th= :author.t
|
|
%th= :commits.t
|
|
%th= :insertions.t
|
|
%th= :deletions.t
|
|
%th= :first_commit.t
|
|
%th= :last_commit.t
|
|
%th
|
|
- 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
|
|
%td= author.deletions
|
|
%td= I18n.localize(author.commits.first.try(:date), format: :long) rescue ""
|
|
%td= I18n.localize(author.commits.last.try(:date), format: :long) rescue ""
|
|
%td
|
|
%a.btn{:href => "#{author.dirname}/activity/by_date.html"}= :show_more.t
|
|
|
|
-elsif page == :commits_count_by_author
|
|
= high_chart("charts.commits_count_by_author", charts.commits_count_by_author(4))
|
|
%small
|
|
%center= "5 #{:best_authors_shown.t}"
|
|
|
|
-elsif page == :commits_sum_by_author_by_date
|
|
= high_stock("charts.commits_sum_by_author_by_date", charts.commits_sum_by_author_by_date(4))
|
|
%small
|
|
%center= "5 #{:best_authors_shown.t}"
|
|
|
|
-elsif page == :changed_lines_by_author_by_date
|
|
= high_stock("charts.changed_lines_by_author_by_date", charts.changed_lines_by_author_by_date(4))
|
|
%small
|
|
%center= "5 #{:best_authors_shown.t}"
|
|
|
|
-elsif page == :insertions_by_author_by_date
|
|
= high_stock("charts.insertions_by_author_by_date", charts.insertions_by_author_by_date(4))
|
|
%small
|
|
%center= "5 #{:best_authors_shown.t}"
|
|
|
|
-elsif page == :deletions_by_author_by_date
|
|
= high_stock("charts.deletions_by_author_by_date", charts.deletions_by_author_by_date(4))
|
|
%small
|
|
%center= "5 #{:best_authors_shown.t}"
|