mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 11:38:49 +01:00
25 lines
492 B
Text
25 lines
492 B
Text
<%
|
|
todo = text_todo
|
|
|
|
if (todo.starred?)
|
|
result_string = " * "
|
|
else
|
|
result_string = " - "
|
|
end
|
|
|
|
if (todo.completed?) && todo.completed_at
|
|
result_string << "[Completed: " + format_date(todo.completed_at) + "] "
|
|
end
|
|
|
|
if todo.due
|
|
result_string << "[Due: " + format_date(todo.due) + "] "
|
|
result_string << todo.description + " "
|
|
else
|
|
result_string << todo.description + " "
|
|
end
|
|
|
|
unless todo.project.nil?
|
|
result_string << "(" + todo.project.name + ")"
|
|
end
|
|
-%><%= result_string -%>
|
|
|