gitlab-org--gitlab-foss/app/views/projects/commits/_commit.atom.builder
Andreas Brandl d5ffcb81b6 Use avatar_icon_for_email for commits.
We need to keep the email lookup as we want to fall back to displaying
the gravatar result for a given email if the user does not exist.
2018-02-13 18:04:51 +01:00

14 lines
541 B
Ruby

xml.entry do
xml.id project_commit_url(@project, id: commit.id)
xml.link href: project_commit_url(@project, id: commit.id)
xml.title truncate(commit.title, length: 80, escape: false)
xml.updated commit.committed_date.xmlschema
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon_for_email(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), type: 'html'
end