git_stats/templates/general.haml

29 lines
841 B
Plaintext
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
2012-10-20 10:44:25 +02:00
%td= :generated_at.t
%td= DateTime.now.to_formatted_s(: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-19 22:01:01 +02:00
%td= repo.commits_period.map {|d| d.to_formatted_s(:long)}.join(" .. ")
%tr
2012-10-20 10:44:25 +02:00
%td= :total_files.t
2012-10-20 22:38:11 +02:00
%td= "#{repo.files_count} (binary: #{repo.binary_files.size}, text: #{repo.text_files.size})"
%tr
2012-10-20 10:44:25 +02:00
%td= :total_lines.t
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)"
%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