2011-10-08 23:36:38 +02:00
|
|
|
- @commits.group_by { |c| c.committed_date.to_date }.each do |day, commits|
|
2011-11-01 11:48:26 +01:00
|
|
|
%div{ :class => "commits-date ui-box ui-box-small ui-box-big" }
|
|
|
|
.day-commits-table
|
2012-01-27 07:57:55 +01:00
|
|
|
%h5.underlined= day.stamp("28 Aug, 2010")
|
|
|
|
%ul.unstyled
|
2011-11-01 11:48:26 +01:00
|
|
|
- commits.each do |commit|
|
2012-01-27 07:57:55 +01:00
|
|
|
%li
|
2012-01-28 01:08:26 +01:00
|
|
|
%a{ :class => "update-item", :href => project_commit_path(@project, :id => commit.id) }
|
|
|
|
.right.btn
|
|
|
|
= truncate(commit.id.to_s, :length => 10)
|
|
|
|
»
|
|
|
|
= image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 32
|
|
|
|
%div
|
2012-01-27 07:57:55 +01:00
|
|
|
%strong
|
2012-01-28 01:08:26 +01:00
|
|
|
= truncate(commit.safe_message, :length => 50)
|
|
|
|
%span.update-author
|
2012-01-27 07:57:55 +01:00
|
|
|
%strong= commit.author_name
|
|
|
|
= time_ago_in_words(commit.committed_date)
|
|
|
|
ago
|