2016-05-23 17:06:26 -04:00
|
|
|
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)
|
2017-03-11 17:05:01 -05:00
|
|
|
xml.updated issue.updated_at.xmlschema
|
2016-05-23 17:06:26 -04:00
|
|
|
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))
|
|
|
|
|
2016-05-15 03:22:01 -04:00
|
|
|
xml.author do
|
2016-05-23 17:06:26 -04:00
|
|
|
xml.name issue.author_name
|
2017-02-16 18:41:34 -05:00
|
|
|
xml.email issue.author_public_email
|
2016-05-23 17:06:26 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
xml.summary issue.title
|
2016-05-15 03:22:01 -04:00
|
|
|
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
|
|
|
|
|
2017-05-04 08:11:15 -04:00
|
|
|
if issue.assignees.any?
|
|
|
|
xml.assignees do
|
|
|
|
issue.assignees.each do |assignee|
|
2017-05-05 09:57:27 -04:00
|
|
|
xml.assignee do
|
|
|
|
xml.name assignee.name
|
|
|
|
xml.email assignee.public_email
|
|
|
|
end
|
2017-05-04 08:11:15 -04:00
|
|
|
end
|
2016-05-15 03:22:01 -04:00
|
|
|
end
|
2017-05-05 09:57:27 -04:00
|
|
|
|
|
|
|
xml.assignee do
|
|
|
|
xml.name issue.assignees.first.name
|
|
|
|
xml.email issue.assignees.first.public_email
|
|
|
|
end
|
2016-05-15 03:22:01 -04:00
|
|
|
end
|
2016-05-23 17:06:26 -04:00
|
|
|
end
|