git_stats/templates/general.haml

32 lines
939 B
Text
Raw Normal View History

%table{:class => "table table-hover table-bordered"}
%tr
2012-10-20 10:34:14 +02:00
%td= :project_name.t
%td= repo.project_name
%tr
2012-10-20 10:44:25 +02:00
%td= :project_version.t
%td= repo.project_version
%tr
%td= :tree_path.t
%td= repo.tree_path
%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)
%tr
2012-10-20 10:44:25 +02:00
%td= :generator.t
%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(" .. ")
%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})"
%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})"
%tr
2012-10-20 10:44:25 +02:00
%td= :total_commits.t
%td= repo.commits.size
%tr
2012-10-20 10:44:25 +02:00
%td= :authors.t
%td= repo.authors.size