mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
20 lines
541 B
Text
20 lines
541 B
Text
|
|
xml.instruct! :xml, :version => "1.0"
|
||
|
|
xml.rss :version => "2.0" do
|
||
|
|
xml.channel do
|
||
|
|
xml.title @feed_title
|
||
|
|
xml.description @feed_description
|
||
|
|
xml.link todos_url
|
||
|
|
xml.language 'en-us'
|
||
|
|
xml.ttl 40
|
||
|
|
|
||
|
|
@todos.each do |todo|
|
||
|
|
xml.item do
|
||
|
|
xml.title h(todo.description)
|
||
|
|
xml.description feed_content_for_todo(todo)
|
||
|
|
xml.pubDate todo.created_at.to_s(:rfc822)
|
||
|
|
xml.link todo.project ? project_url(todo.project) : context_url(todo.context)
|
||
|
|
xml.guid todo_url(todo)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|