2012-10-13 14:31:52 +02:00
|
|
|
%table{:class => "table table-hover table-bordered"}
|
|
|
|
%tr
|
|
|
|
%td Project name
|
|
|
|
%td= repo.project_name
|
|
|
|
%tr
|
|
|
|
%td Project version
|
|
|
|
%td= repo.project_version
|
|
|
|
%tr
|
|
|
|
%td Generated at
|
|
|
|
%td= DateTime.now.to_formatted_s(:long)
|
|
|
|
%tr
|
|
|
|
%td Generator
|
|
|
|
%td= "GitStats #{GitStats::VERSION}"
|
|
|
|
%tr
|
|
|
|
%td Report period
|
2012-10-19 22:01:01 +02:00
|
|
|
%td= repo.commits_period.map {|d| d.to_formatted_s(:long)}.join(" .. ")
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
|
|
|
%td Total files
|
2012-10-19 22:01:01 +02:00
|
|
|
%td= repo.files_count
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
|
|
|
%td Total lines
|
2012-10-19 22:01:01 +02:00
|
|
|
%td= "#{repo.lines_count} lines (#{repo.short_stats.map(&:insertions).sum} insertions, #{repo.short_stats.map(&:deletions).sum} deletions)"
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
|
|
|
%td Total commits
|
|
|
|
%td= repo.commits.size
|
|
|
|
%tr
|
|
|
|
%td Authors
|
|
|
|
%td= repo.authors.size
|