tracks/app/views/todos/index.rss.builder
Carsten Otto 6bc9151400 use @not_done_todos for feeds
fixes #1726

the name @not_done_todos is wrong and should be replaced in a dedicated fix
2016-05-29 22:59:42 +02:00

20 lines
No EOL
588 B
Ruby

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|
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)
xml.guid todo_url(todo)
end
end
end
end