2011-10-18 16:44:43 +02:00
|
|
|
- @commits.each do |commit|
|
|
|
|
%div.commit
|
|
|
|
- if commit.author.email
|
|
|
|
= image_tag gravatar_icon(commit.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
- else
|
|
|
|
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
%p{:style => "margin-bottom: 3px;"}
|
|
|
|
%strong
|
|
|
|
= link_to truncate_commit_message(commit, 60), project_commit_path(@project, :id => commit.id)
|
|
|
|
|
|
|
|
%span
|
2011-10-20 18:21:58 +02:00
|
|
|
%span.author
|
|
|
|
= commit.author.name.force_encoding("UTF-8")
|
2011-10-18 16:44:43 +02:00
|
|
|
%cite
|
|
|
|
= time_ago_in_words(commit.committed_date)
|
|
|
|
ago
|
|
|
|
%br
|
|
|
|
|