tracks/app/views/todos/index.rss.builder

20 lines
588 B
Text
Raw Normal View History

2012-04-27 14:22:16 +02:00
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
@not_done_todos.each do |todo|
2012-04-27 14:22:16 +02:00
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 && !todo.project.is_a?(NullProject)) ? project_url(todo.project) : context_url(todo.context)
2012-04-27 14:22:16 +02:00
xml.guid todo_url(todo)
end
end
end
end