mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
applied patch from Mako to remove whitespace from text view. Thanks Mako
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@791 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
72d5041cc6
commit
0336c37e24
2 changed files with 31 additions and 31 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 %>:
|
||||
<%= 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 %>:
|
||||
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|
||||
<% 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