BigW Consortium Gitlab

issues.atom.builder 535 Bytes
Newer Older
1 2 3
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
  xml.title   "#{@user.name} issues"
4
  xml.link    href: issues_dashboard_url(format: :atom, private_token: @user.private_token), rel: "self", type: "application/atom+xml"
5
  xml.link    href: issues_dashboard_url, rel: "alternate", type: "text/html"
6
  xml.id      issues_dashboard_url
7
  xml.updated @issues.first.created_at.xmlschema if @issues.any?
8 9

  @issues.each do |issue|
10
    issue_to_atom(xml, issue)
11 12 13
  end
end