Index: openacs-4/contrib/packages/project-manager/www/task-one.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-one.tcl,v diff -u -r1.22.2.3 -r1.22.2.4 --- openacs-4/contrib/packages/project-manager/www/task-one.tcl 13 Dec 2003 01:19:54 -0000 1.22.2.3 +++ openacs-4/contrib/packages/project-manager/www/task-one.tcl 10 Jan 2004 01:04:02 -0000 1.22.2.4 @@ -92,6 +92,16 @@ db_1row task_query { } -column_array task_info set task_info(description) [ad_text_to_html -- $task_info(description)] +if {[exists_and_not_null task_info(earliest_start_j)]} { + if {$task_info(earliest_start_j) < $task_info(today_j)} { + set task_info(slack_time) "[expr $task_info(latest_start_j) - $task_info(today_j)] days" + } else { + set task_info(slack_time) "[expr $task_info(latest_start_j) - $task_info(earliest_start_j)] days" + } +} else { + set task_info(slack_time) "n/a" +} + # Task Revisions, using list-builder --------------------------------- template::list::create \