From 2bf48a15cbe642bbe56d219df1d9f49638696358 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Wed, 4 Nov 2009 22:43:21 -0500 Subject: [PATCH] Bug #300: Added infrastructure for collapsible dependency block, similar to todo notes. Conflicts: app/views/layouts/standard.html.erb public/javascripts/application.js --- app/views/todos/_todo.html.erb | 1 + app/views/todos/_toggle_dependencies.rhtml | 5 +++++ public/javascripts/application.js | 4 ++++ public/stylesheets/standard.css | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 app/views/todos/_toggle_dependencies.rhtml diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 4d2ad947..587aa8ff 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -29,6 +29,7 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' <%= deferred_due_date %> <%= project_and_context_links( parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %> <%= render(:partial => "todos/toggle_notes", :locals => { :item => todo }) if todo.notes? %> + <%= render(:partial => "todos/toggle_dependencies", :locals => { :item => todo }) if todo.uncompleted_predecessors.empty? or !todo.successors.empty? %>