2008-08-01 15:01:42 +02:00
|
|
|
<%
|
|
|
|
|
todo = text_todo
|
|
|
|
|
|
|
|
|
|
if (todo.starred?)
|
|
|
|
|
result_string = " * "
|
|
|
|
|
else
|
|
|
|
|
result_string = " - "
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if (todo.completed?) && todo.completed_at
|
2011-01-16 18:14:07 +01:00
|
|
|
result_string << "["+ t('todos.completed') +": " + format_date(todo.completed_at) + "] "
|
2008-08-01 15:01:42 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if todo.due
|
2011-01-16 18:14:07 +01:00
|
|
|
result_string << "[" + t('todos.due') + ": " + format_date(todo.due) + "] "
|
2008-08-01 15:01:42 +02:00
|
|
|
result_string << todo.description + " "
|
|
|
|
|
else
|
|
|
|
|
result_string << todo.description + " "
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
unless todo.project.nil?
|
|
|
|
|
result_string << "(" + todo.project.name + ")"
|
|
|
|
|
end
|
|
|
|
|
-%><%= result_string -%>
|
2008-08-04 09:16:01 +02:00
|
|
|
|