mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
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
This commit is contained in:
parent
358e1f61cc
commit
fbcf864bde
1 changed files with 10 additions and 4 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue