BigW Consortium Gitlab

_issue.atom.builder 944 Bytes
Newer Older
1 2 3 4
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)
5
  xml.updated issue.updated_at.xmlschema
6 7
  xml.media   :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))

8
  xml.author do
9
    xml.name issue.author_name
10
    xml.email issue.author_public_email
11 12 13
  end

  xml.summary issue.title
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  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
29
      xml.email issue.assignee_public_email
30 31
    end
  end
32
end