<% 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]) %>
Branches (<%= @repo.branches.size %>)
Tags (<%= @repo.tags.count %>)
    <% if @repo.tags.any? %> <% @repo.tags.each_name do |tag| %> <%= h tag %> <% end %> <% else %>
  • No tags
  • <% end %>