tracks/app/views/todos/_text_todo.rhtml
Marcus Ilgner 338d4bb5a6 Added locale selection to preferences
Mostly completed transition to full i18n
Incorporated german translations by Ulf Klose <ulf.klose@gmail.com>
2011-01-16 18:14:07 +01:00

25 lines
528 B
Text

<%
todo = text_todo
if (todo.starred?)
result_string = " * "
else
result_string = " - "
end
if (todo.completed?) && todo.completed_at
result_string << "["+ t('todos.completed') +": " + format_date(todo.completed_at) + "] "
end
if todo.due
result_string << "[" + t('todos.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 -%>