From c89a8249ed953b6223373ab561daf568ae0f0283 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Wed, 11 Oct 2006 04:40:58 +0000 Subject: [PATCH] Applied an anonymous patch from Germany to add a "mark as done" link to RSS feed items. Fixes #386 Danke! git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@325 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/feed/rss.rxml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tracks/app/views/feed/rss.rxml b/tracks/app/views/feed/rss.rxml index 84470254..ff041256 100644 --- a/tracks/app/views/feed/rss.rxml +++ b/tracks/app/views/feed/rss.rxml @@ -9,8 +9,10 @@ xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do xml.link(url_for(:only_path => false, :controller => 'context', :action => 'show', :name => urlize(i.context.name))) item_notes = sanitize(markdown( i.notes )) if i.notes? due = "
Due: #{format_date(i.due)}
\n" if i.due? - done = "
Completed: #{format_date(i.completed)}
\n" if i.completed? - context_link = link_to( i.context.name, { :only_path => false, :controller => "context", :action => "show", :name => urlize(i.context.name) } ) + toggle_link = link_to( "mark as done", {:only_path => false, :controller => "todo", :action => "toggle_check", :id => i.id}) + done = "
#{toggle_link}
" unless i.completed? + done = "
Completed: #{format_date(i.completed)}
\n" if i.completed? + context_link = link_to( i.context.name, { :only_path => false, :controller => "context", :action => "show", :name => urlize(i.context.name) } ) project_link = if i.project_id? link_to (i.project.name, { :only_path => false, :controller => "project", :action => "show", :name => urlize(i.project.name)} ) else