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
|
2011-10-08 23:36:38 +02:00
|
|
|
%h3= day.stamp("28 Aug, 2010")
|
2011-11-01 11:48:26 +01:00
|
|
|
.data
|
|
|
|
- commits.each do |commit|
|
|
|
|
%a{ :class => "commit", :href => project_commit_path(@project, :id => commit.id) }
|
|
|
|
%span.commit-info
|
|
|
|
%data.commit-button
|
|
|
|
= truncate(commit.id.to_s, :length => 16)
|
|
|
|
%i
|
2011-11-16 06:38:53 +01:00
|
|
|
%data.commit-browse{ :onclick => "location.href='#{tree_project_ref_path(@project, commit.id)}';return false;"}
|
2011-11-01 11:48:26 +01:00
|
|
|
Browse Code
|
2011-11-03 11:56:26 +01:00
|
|
|
- if commit.author_email
|
|
|
|
= image_tag gravatar_icon(commit.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
2011-11-01 11:48:26 +01:00
|
|
|
- else
|
|
|
|
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
%span.commit-title
|
|
|
|
%strong
|
2011-12-12 21:12:37 +01:00
|
|
|
= truncate(commit.safe_message, :length => 70)
|
2011-11-01 11:48:26 +01:00
|
|
|
%span.commit-author
|
2011-11-03 11:56:26 +01:00
|
|
|
%strong= commit.author_name
|
2011-11-01 11:48:26 +01:00
|
|
|
= time_ago_in_words(commit.committed_date)
|
|
|
|
ago
|