<% base_url = url prefix_url("#{@repo.param}") if params[:ref] url = "#{base_url}/#{params[:ref]}" name = "#{@repo.name}: #{params[:ref]}" else url = base_url name = "#{@repo.name}: master" end %> <%= url %> Commits to <%= name %> <%= h(@repo.description) %> <%= @commits.first ? rfc_date(@commits.first.committer[:time]) : rfc_date(Time.now.utc) %> <% @commits.each do |commit| %> <%= "#{base_url}/commit/#{commit.oid[0..6]}" %> <%= "Commit #{commit.oid[0..6]} to #{@repo.name}" %> <%= h(simple_format commit.message) %> "/> <%= rfc_date(commit.committer[:time]) %> <%= commit.author[:name] %> <%= commit.author[:email] %> <% end %>