BigW Consortium Gitlab

issues.atom.builder 570 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"
Douwe Maan committed
4
  xml.link    href: issues_dashboard_url(format: :atom, private_token: current_user.try(: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
  xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
10
end