Index: openacs-4/packages/acs-subsite/lib/user-subsites.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/user-subsites.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/user-subsites.adp 22 Mar 2005 00:57:59 -0000 1.1 @@ -0,0 +1,8 @@ + +

#acs-subsite.You_are_in_the_follow#

+ +
\ No newline at end of file Index: openacs-4/packages/acs-subsite/lib/user-subsites.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/user-subsites.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/user-subsites.tcl 22 Mar 2005 00:57:59 -0000 1.1 @@ -0,0 +1,10 @@ +db_multirow -extend {url admin_p} groups groups { + select distinct ap.package_id, groups.group_id, lower(groups.group_name), groups.group_name + from groups, group_member_map gm, application_groups ap + where groups.group_id = gm.group_id and gm.member_id=:user_id + and ap.group_id = groups.group_id + order by lower(groups.group_name) +} { + set admin_p [permission::permission_p -party_id $user_id -object_id $group_id -privilege "admin"] + set url [apm_package_url_from_id $package_id] +} Index: openacs-4/packages/acs-subsite/tcl/callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/callback-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/tcl/callback-procs.tcl 22 Mar 2005 00:57:59 -0000 1.1 @@ -0,0 +1,26 @@ +ad_library { + Callback definitions + + @author Jeff Davis + @creation-date 2005-03-11 + @cvs-id $Id: callback-procs.tcl,v 1.1 2005/03/22 00:57:59 jeffd Exp $ +} + +ad_proc -public -callback user::workspace { + -user_id +} { + used to generate html fragments for display on the /pvt/home page. + + The html fragment should have an h2 header for sectioning. + + @param user_id - the user to display + + @see callback::user::workspace::impl::acs-subsite +} - + + +ad_proc -public -callback user::workspace -impl acs-subsite {} { + Generate a table showing the application group membership +} { + return [template::adp_include /packages/acs-subsite/lib/user-subsites [list user_id $user_id]] +} Index: openacs-4/packages/acs-subsite/www/pvt/home.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/pvt/home.adp,v diff -u -r1.19 -r1.20 --- openacs-4/packages/acs-subsite/www/pvt/home.adp 13 Jan 2005 23:34:16 -0000 1.19 +++ openacs-4/packages/acs-subsite/www/pvt/home.adp 22 Mar 2005 00:58:41 -0000 1.20 @@ -2,61 +2,68 @@ @page_title@ @context;noquote@ user_info.first_names + @user_id@ -

#acs-subsite.Basic_Information#

+

#acs-subsite.Basic_Information#

- + +

#acs-subsite.lt_What_other_people_see#

- - #acs-subsite.Account_closed_workspace_msg# - + + @fragments:item;noquote@ + - - + +

#acs-subsite.Your_Portrait#

+

+ #acs-subsite.lt_Show_everyone_else_at# #acs-subsite.upload_a_portrait# +

+
- - #acs-subsite.Currently_invisible_msg# + +

#acs-subsite.Your_Portrait#

+

+ #acs-subsite.lt_On_portrait_publish_d#. +

+
+ +

#acs-subsite.Whos_Online_title#

-
- - #acs-subsite.Currently_visible_msg# - - + + + #acs-subsite.Currently_invisible_msg# + + + + #acs-subsite.Currently_visible_msg# + + Index: openacs-4/packages/acs-subsite/www/pvt/home.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/pvt/home.tcl,v diff -u -r1.17 -r1.18 --- openacs-4/packages/acs-subsite/www/pvt/home.tcl 3 Oct 2003 10:14:31 -0000 1.17 +++ openacs-4/packages/acs-subsite/www/pvt/home.tcl 22 Mar 2005 00:58:41 -0000 1.18 @@ -17,7 +17,6 @@ export_user_id:onevalue ad_url:onevalue member_link:onevalue - subsite_url:onevalue pvt_home_url:onevalue } @@ -32,17 +31,16 @@ set pvt_home_url [ad_pvt_home] -set subsite_url [subsite::get_element -element url] - set context [list $page_title] +set fragments [callback user::workspace -user_id $user_id] + set ad_url [ad_url] set community_member_url [acs_community_member_url -user_id $user_id] set notifications_url [lindex [site_node::get_children -node_id [subsite::get_element -element node_id] -package_key "notifications"] 0] - set system_name [ad_system_name] set portrait_upload_url [export_vars -base "../user/portrait/upload" { { return_url [ad_return_url] } }]