Index: openacs-4/packages/project-manager/lib/project-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/project-portlet.adp,v diff -u -r1.8 -r1.9 --- openacs-4/packages/project-manager/lib/project-portlet.adp 29 Jul 2005 23:27:57 -0000 1.8 +++ openacs-4/packages/project-manager/lib/project-portlet.adp 12 Aug 2005 06:02:54 -0000 1.9 @@ -1,21 +1,21 @@ - - - - #acs-kernel.common_Edit# - - - - - #project-manager.Set_permissions# - - - -   @project_term@ @project.project_name@ + + + + #acs-kernel.common_Edit# + + + + + #project-manager.Set_permissions# + + + +   @project_term@ @project.project_name@ - + Index: openacs-4/packages/project-manager/lib/project-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/project-portlet.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/project-manager/lib/project-portlet.tcl 30 Jul 2005 00:26:33 -0000 1.9 +++ openacs-4/packages/project-manager/lib/project-portlet.tcl 12 Aug 2005 06:02:54 -0000 1.10 @@ -30,6 +30,10 @@ set project(description) [template::util::richtext::get_property html_value $richtext_list] set project_root [pm::util::get_root_folder] +if {![exists_and_not_null fmt]} { + set fmt "%x" +} + set project(planned_start_date) [lc_time_fmt $project(planned_start_date) $fmt] set project(planned_end_date) [lc_time_fmt $project(planned_end_date) $fmt] set project(estimated_finish_date) [lc_time_fmt $project(estimated_finish_date) $fmt] @@ -58,5 +62,20 @@ } } +# categories + +set cat_trees [list] +set cat_list [category::get_mapped_categories $project_id] +foreach cat $cat_list { + set tree_id [category::get_tree $cat] + lappend cat_trees [list [category_tree::get_name $tree_id] [category::get_name $cat] $tree_id] +} + +multirow create categories tree_id tree_name category_name +foreach cat [lsort -dictionary -index 0 $cat_trees] { + util_unlist $cat tree_name cat_name tree_id + multirow append categories $tree_id $tree_name $cat_name +} + set project_links "" callback pm::project_links -project_id $project_item_id
@@ -55,16 +55,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@dynamic_attributes.value@
Dates
#project-manager.Start#@project.planned_start_date@
#project-manager.Earliest_finish#@project.earliest_finish_date@#project-manager.Ongoing#
#project-manager.Latest_finish# + @project.latest_finish_date@ + #project-manager.Ongoing#
#project-manager.Deadline# + @project.planned_end_date@ + #project-manager.Ongoing#
#categories.Categories# +
    + +
  • @categories.tree_name@: + + @categories.category_name@ + +
  • +
    +
+