2012-10-13 14:31:52 +02:00
|
|
|
%table{:class => "table table-hover table-bordered"}
|
|
|
|
%tr
|
2012-10-20 10:34:14 +02:00
|
|
|
%td= :project_name.t
|
2012-10-13 14:31:52 +02:00
|
|
|
%td= repo.project_name
|
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :project_version.t
|
2012-10-13 14:31:52 +02:00
|
|
|
%td= repo.project_version
|
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :generated_at.t
|
2012-10-22 23:18:54 +02:00
|
|
|
%td= I18n.localize(DateTime.now, format: :long)
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :generator.t
|
2012-10-13 14:31:52 +02:00
|
|
|
%td= "GitStats #{GitStats::VERSION}"
|
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :report_period.t
|
2012-10-22 23:18:54 +02:00
|
|
|
%td= repo.commits_period.map {|d| I18n.localize(d, format: :long)}.join(" .. ")
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :total_files.t
|
2012-10-22 23:18:54 +02:00
|
|
|
%td= "#{repo.files_count} (#{:binary.t}: #{repo.binary_files.size}, #{:text.t}: #{repo.text_files.size})"
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :total_lines.t
|
2012-10-22 23:18:54 +02:00
|
|
|
%td= "#{repo.lines_count} #{:lines.t} (#{repo.short_stats.map(&:insertions).sum} #{:insertions.t}, #{repo.short_stats.map(&:deletions).sum} #{:deletions.t})"
|
2012-10-13 14:31:52 +02:00
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :total_commits.t
|
2012-10-13 14:31:52 +02:00
|
|
|
%td= repo.commits.size
|
|
|
|
%tr
|
2012-10-20 10:44:25 +02:00
|
|
|
%td= :authors.t
|
2012-10-13 14:31:52 +02:00
|
|
|
%td= repo.authors.size
|