use @not_done_todos for feeds

fixes #1726

the name @not_done_todos is wrong and should be replaced in a dedicated fix
This commit is contained in:
Carsten Otto 2016-05-29 22:58:35 +02:00
parent bd0598ef64
commit 6bc9151400
3 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
atom_feed do |feed|
feed.title(@feed_title)
feed.subtitle(@feed_description)
feed.updated(@todos.last.updated_at)
feed.updated(@not_done_todos.last.updated_at)
@todos.each do |todo|
@not_done_todos.each do |todo|
feed.entry(todo) do |entry|
entry.title(h(todo.description))
entry.link(todo.project ? project_url(todo.project) : context_url(todo.context))

View file

@ -8,7 +8,7 @@ TZID:<%= ENV['TZ'] || 'GMT' %>
LAST-MODIFIED:<%= Time.now.strftime("%Y%m%dT%H%M%SZ") %>
TZNAME:<%= ENV['TZ'] %>
END:VTIMEZONE
<% for @todo in @todos -%>
<% for @todo in @not_done_todos -%>
BEGIN:VTODO
DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %>
DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %>

View file

@ -7,7 +7,7 @@ xml.rss :version => "2.0" do
xml.language 'en-us'
xml.ttl 40
@todos.each do |todo|
@not_done_todos.each do |todo|
xml.item do
xml.title h(todo.description)
xml.description feed_content_for_todo(todo)