mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
Removed unnecessary line breaks in text feeds. Set line breaks in view to unix. Fixes #472.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@489 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
8e719d9e9a
commit
e3ebb686e1
2 changed files with 26 additions and 27 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<%
|
||||
context = text_context
|
||||
todos_in_context = todos.select { |t| t.context_id == context.id }
|
||||
if todos_in_context.length > 0
|
||||
%>
|
||||
<%= context.name.upcase %>:
|
||||
<% end -%>
|
||||
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|
||||
<%
|
||||
context = text_context
|
||||
todos_in_context = todos.select { |t| t.context_id == context.id }
|
||||
if todos_in_context.length > 0
|
||||
%>
|
||||
<%= context.name.upcase %>:
|
||||
<% end -%>
|
||||
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|
||||
|
|
|
|||
|
|
@ -1,19 +1,18 @@
|
|||
<%
|
||||
todo = text_todo
|
||||
result_string = ''
|
||||
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
|
||||
result_string = ''
|
||||
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