mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 05:05:18 +01:00
fix some whitespace issues with text feed
This commit is contained in:
parent
8ede8030d3
commit
dcac7611ed
2 changed files with 24 additions and 25 deletions
|
|
@ -2,5 +2,4 @@
|
|||
<%= p.name.upcase -%>
|
||||
<% actions = p.todos.select { |t| t.active? } -%>
|
||||
<%= render :partial => "todos/text_todo", :collection => actions -%>
|
||||
|
||||
<% end -%>
|
||||
|
|
@ -1,24 +1,24 @@
|
|||
<%
|
||||
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 %>
|
||||
<%
|
||||
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 -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue