From fbcf864bde4e27fb814fb68c7391415666844952 Mon Sep 17 00:00:00 2001 From: lrbalt Date: Tue, 2 Oct 2007 19:50:26 +0000 Subject: [PATCH] This patch adds a star to starred actions in the txt feed as suggested in #576 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@607 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/todos/_text_todo.rhtml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tracks/app/views/todos/_text_todo.rhtml b/tracks/app/views/todos/_text_todo.rhtml index 25e02560..983a2540 100644 --- a/tracks/app/views/todos/_text_todo.rhtml +++ b/tracks/app/views/todos/_text_todo.rhtml @@ -1,15 +1,21 @@ <% todo = text_todo -result_string = '' + +if (todo.starred?) + result_string = " * " +else + result_string = " " +end + if (todo.completed?) && todo.completed_at - result_string << " [Completed: " + format_date(todo.completed_at) + "] " + result_string << "[Completed: " + format_date(todo.completed_at) + "] " end if todo.due - result_string << " [Due: " + format_date(todo.due) + "] " + result_string << "[Due: " + format_date(todo.due) + "] " result_string << todo.description + " " else - result_string << " " + todo.description + " " + result_string << todo.description + " " end unless todo.project.nil?