gitlab-org--gitlab-foss/app/views/issues/_issue.atom.builder
Rémy Coutable 153b594c06 Merge branch '28058-hide-emails-in-atom-feeds' into 'security'
Only show public emails in atom feeds

See merge request !2066
2017-03-20 18:45:45 -07:00

32 lines
944 B
Ruby

xml.entry do
xml.id namespace_project_issue_url(issue.project.namespace, issue.project, issue)
xml.link href: namespace_project_issue_url(issue.project.namespace, issue.project, issue)
xml.title truncate(issue.title, length: 80)
xml.updated issue.updated_at.xmlschema
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))
xml.author do
xml.name issue.author_name
xml.email issue.author_public_email
end
xml.summary issue.title
xml.description issue.description if issue.description
xml.milestone issue.milestone.title if issue.milestone
xml.due_date issue.due_date if issue.due_date
unless issue.labels.empty?
xml.labels do
issue.labels.each do |label|
xml.label label.name
end
end
end
if issue.assignee
xml.assignee do
xml.name issue.assignee.name
xml.email issue.assignee_public_email
end
end
end