From 0336c37e24df0bc2235ee6d912077aed36988a7e Mon Sep 17 00:00:00 2001 From: lrbalt Date: Thu, 3 Apr 2008 18:31:20 +0000 Subject: [PATCH] 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 --- tracks/app/views/contexts/_text_context.rhtml | 14 +++--- tracks/app/views/todos/_text_todo.rhtml | 48 +++++++++---------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/tracks/app/views/contexts/_text_context.rhtml b/tracks/app/views/contexts/_text_context.rhtml index f572579a..31927ff3 100644 --- a/tracks/app/views/contexts/_text_context.rhtml +++ b/tracks/app/views/contexts/_text_context.rhtml @@ -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 -%> \ No newline at end of file diff --git a/tracks/app/views/todos/_text_todo.rhtml b/tracks/app/views/todos/_text_todo.rhtml index 983a2540..2569c50a 100644 --- a/tracks/app/views/todos/_text_todo.rhtml +++ b/tracks/app/views/todos/_text_todo.rhtml @@ -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 %>