- @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.safe_message, :length => 60), project_commit_path(@project, :id => commit.id) %span %span.author = commit.author.name.force_encoding("UTF-8") %cite = time_ago_in_words(commit.committed_date) ago %br