BigW Consortium Gitlab

issues.atom.builder 527 Bytes
Newer Older
1
xml.instruct!
2
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
3
  xml.title   "#{current_user.name} issues"
4
  xml.link    href: url_for(params), 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.reorder(nil).any?
8

9
  xml << render(partial: 'issues/issue', collection: @issues) if @issues.reorder(nil).any?
10
end