gitlabhq/app/views/projects/_recent_commits.html.haml

19 lines
628 B
Plaintext
Raw Normal View History

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.safe_message, :length => 60), project_commit_path(@project, :id => commit.id)
2011-10-18 16:44:43 +02:00
%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