Index: openacs-4/packages/dotlrn/dotlrn.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/dotlrn.info,v diff -u -r1.15 -r1.16 --- openacs-4/packages/dotlrn/dotlrn.info 27 Nov 2001 23:32:03 -0000 1.15 +++ openacs-4/packages/dotlrn/dotlrn.info 28 Nov 2001 00:11:48 -0000 1.16 @@ -62,8 +62,6 @@ - - @@ -72,15 +70,6 @@ - - - - - - - - - @@ -105,8 +94,19 @@ + + + + + + + + + + + Index: openacs-4/packages/dotlrn/www/community-applet-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-applet-add.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/community-applet-add.tcl 27 Nov 2001 23:42:34 -0000 1.1 +++ openacs-4/packages/dotlrn/www/community-applet-add.tcl 28 Nov 2001 00:11:48 -0000 1.2 @@ -5,10 +5,11 @@ @author Ben Adida (ben@openforce.net) @creation-date 2001-10-08 } { - community_id applet_key } +set community_id [dotlrn_community::get_community_id] + # Check access if {![dotlrn_community::admin_access_p $community_id]} { ns_returnredirect / Index: openacs-4/packages/dotlrn/www/community-applets.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-applets.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/community-applets.adp 27 Nov 2001 23:32:03 -0000 1.1 +++ openacs-4/packages/dotlrn/www/community-applets.adp 28 Nov 2001 00:11:48 -0000 1.2 @@ -17,6 +17,6 @@

Applets to Add

    -
  • @all_applets.applet_pretty_name@ - [add] +
  • @all_applets.applet_pretty_name@ - [add]
Index: openacs-4/packages/dotlrn/www/community-applets.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-applets.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/community-applets.tcl 27 Nov 2001 23:32:03 -0000 1.1 +++ openacs-4/packages/dotlrn/www/community-applets.tcl 28 Nov 2001 00:11:48 -0000 1.2 @@ -6,9 +6,10 @@ @author Ben Adida (ben@openforce.net) @creation-date 2001-10-05 } { - community_id } +set community_id [dotlrn_community::get_community_id] + set user_id [ad_conn user_id] # Load some community type info @@ -35,6 +36,6 @@ } } -set context_bar {Admin} +set context_bar {Applets} ad_return_template Index: openacs-4/packages/dotlrn/www/community-user-add-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-user-add-2.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/community-user-add-2.adp 27 Nov 2001 23:42:34 -0000 1.2 +++ openacs-4/packages/dotlrn/www/community-user-add-2.adp 28 Nov 2001 00:11:48 -0000 1.3 @@ -5,7 +5,6 @@
- Role:
+
  • Add a user:
  • Portal Template

    Index: openacs-4/packages/dotlrn/www/one-community-admin.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-admin.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/one-community-admin.tcl 27 Nov 2001 23:32:03 -0000 1.5 +++ openacs-4/packages/dotlrn/www/one-community-admin.tcl 28 Nov 2001 00:11:48 -0000 1.6 @@ -5,9 +5,10 @@ @author Ben Adida (ben@openforce.net) @creation-date 2001-11-27 } { - community_id } +set community_id [dotlrn_community::get_community_id] + # Permissions dotlrn::require_user_admin_community $community_id @@ -23,4 +24,6 @@ template::multirow append users [lindex $user 0] [dotlrn_community::get_pretty_rel_type [lindex $user 1]] [lindex $user 2] [lindex $user 3] [lindex $user 4] [lindex $user 5] } +set context_bar {Admin} + ad_return_template Index: openacs-4/packages/dotlrn/www/one-community-type.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-type.adp,v diff -u -r1.8 -r1.9 --- openacs-4/packages/dotlrn/www/one-community-type.adp 27 Nov 2001 23:32:03 -0000 1.8 +++ openacs-4/packages/dotlrn/www/one-community-type.adp 28 Nov 2001 00:11:48 -0000 1.9 @@ -22,7 +22,7 @@

    Active Communities of this Type

    Index: openacs-4/packages/dotlrn/www/one-community.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/one-community.adp 9 Nov 2001 03:55:36 -0000 1.5 +++ openacs-4/packages/dotlrn/www/one-community.adp 28 Nov 2001 00:11:48 -0000 1.6 @@ -5,6 +5,7 @@ You are registered! You may deregister if you'd like.

    Configure this page. +Admin this community.

    @rendered_page@ Index: openacs-4/packages/dotlrn/www/one-community.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn/www/one-community.tcl 13 Nov 2001 17:57:30 -0000 1.6 +++ openacs-4/packages/dotlrn/www/one-community.tcl 28 Nov 2001 00:11:48 -0000 1.7 @@ -44,5 +44,7 @@ set context_bar {View} + set admin_p [dotlrn::user_can_admin_community_p $community_id] + ad_return_template } Fisheye: Tag 1.8 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/admin/one-class-instance.adp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/admin/one-class-instance.tcl'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/admin/one-class-instance.xql'. Fisheye: No comparison available. Pass `N' to diff?