diff --git a/app/views/todos/index.atom.builder b/app/views/todos/index.atom.builder index 6c49ba80..85f6ffb4 100644 --- a/app/views/todos/index.atom.builder +++ b/app/views/todos/index.atom.builder @@ -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)) diff --git a/app/views/todos/index.ics.erb b/app/views/todos/index.ics.erb index 7fee3a19..8873ba13 100644 --- a/app/views/todos/index.ics.erb +++ b/app/views/todos/index.ics.erb @@ -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") %> diff --git a/app/views/todos/index.rss.builder b/app/views/todos/index.rss.builder index e6e61a39..a74faaf7 100644 --- a/app/views/todos/index.rss.builder +++ b/app/views/todos/index.rss.builder @@ -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)