<% title @repo.name, headline: 'Commits' %> <%= partial :header, locals: { repo: @repo } %>
<% @commits.each do |commit| %> <% url = prefix_url("#{@repo.param}/commit/#{commit.oid}") %> <% end %>
Author Commit message Date
<%= gravatar_image_tag commit.author[:email], class: 'img-rounded', alt: commit.author[:name], lazy: true %> <%= commit.author[:name] %> <%= truncate(h(commit.message), { length: 140, separator: ' ' }) %> <%= time_tag(commit.committer[:time]) %>