2012-10-02 13:42:15 -04:00
|
|
|
xml.instruct!
|
|
|
|
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
|
|
|
|
xml.title "#{@user.name} issues"
|
2015-04-21 11:03:23 -04:00
|
|
|
xml.link href: issues_dashboard_url(format: :atom, private_token: @user.private_token), rel: "self", type: "application/atom+xml"
|
2015-04-23 11:10:35 -04:00
|
|
|
xml.link href: issues_dashboard_url, rel: "alternate", type: "text/html"
|
2015-04-21 11:03:23 -04:00
|
|
|
xml.id issues_dashboard_url
|
2012-10-02 13:42:15 -04:00
|
|
|
xml.updated @issues.first.created_at.strftime("%Y-%m-%dT%H:%M:%SZ") if @issues.any?
|
|
|
|
|
|
|
|
@issues.each do |issue|
|
2014-12-04 15:14:20 -05:00
|
|
|
issue_to_atom(xml, issue)
|
2012-10-02 13:42:15 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|