summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/_commit.atom.builder
blob: 1657fb46163758fe8f9869e17e5079052f134e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
xml.entry do
  xml.id      namespace_project_commit_url(@project.namespace, @project, id: commit.id)
  xml.link    href: namespace_project_commit_url(@project.namespace, @project, id: commit.id)
  xml.title   truncate(commit.title, length: 80)
  xml.updated commit.committed_date.xmlschema
  xml.media   :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(commit.author_email))

  xml.author do |author|
    xml.name commit.author_name
    xml.email commit.author_email
  end

  xml.summary markdown(commit.description, pipeline: :single_line)
end