Manage Applets
+1
+one-community
+1
+1
+@portal_id@
@context_bar@
-Group Admin
-
Index: openacs-4/packages/dotlrn/www/applets.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/applets.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/dotlrn/www/applets.tcl 23 Jan 2002 07:41:04 -0000 1.8
+++ openacs-4/packages/dotlrn/www/applets.tcl 6 Mar 2002 05:12:54 -0000 1.9
@@ -7,6 +7,8 @@
} -query {
}
-set context_bar {{"one-community-admin" Admin} {Manage Applets}}
+set community_id [dotlrn_community::get_community_id]
+set user_id [ad_get_user_id]
+set portal_id [dotlrn_community::get_portal_id $community_id $user_id]
-ad_return_template
+set context_bar {{"one-community-admin" Admin} {Manage Applets}}
Index: openacs-4/packages/dotlrn/www/members.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.adp,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotlrn/www/members.adp 28 Jan 2002 21:57:52 -0000 1.5
+++ openacs-4/packages/dotlrn/www/members.adp 6 Mar 2002 05:12:54 -0000 1.6
@@ -1,7 +1,11 @@
Manage Membership
-@context_bar@
+1
+one-community
+1
+1
+@portal_id@
-Group Admin
+
Index: openacs-4/packages/dotlrn/www/members.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/dotlrn/www/members.tcl 23 Jan 2002 07:41:04 -0000 1.7
+++ openacs-4/packages/dotlrn/www/members.tcl 6 Mar 2002 05:12:54 -0000 1.8
@@ -7,6 +7,9 @@
} -query {
}
+set community_id [dotlrn_community::get_community_id]
+set user_id [ad_get_user_id]
set context_bar {{"one-community-admin" Admin} {Manage Members}}
+set portal_id [dotlrn_community::get_portal_id $community_id $user_id]
ad_return_template
Index: openacs-4/packages/dotlrn/www/one-community-admin.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-admin.adp,v
diff -u -r1.16 -r1.17
--- openacs-4/packages/dotlrn/www/one-community-admin.adp 28 Jan 2002 21:57:52 -0000 1.16
+++ openacs-4/packages/dotlrn/www/one-community-admin.adp 6 Mar 2002 05:12:54 -0000 1.17
@@ -6,8 +6,6 @@
one-community
0
1
-Group Admin
-
@rendered_page@
Index: openacs-4/packages/dotlrn/www/one-community-not-member.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/one-community-not-member.adp,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/dotlrn/www/one-community-not-member.adp 14 Feb 2002 19:43:11 -0000 1.11
+++ openacs-4/packages/dotlrn/www/one-community-not-member.adp 6 Mar 2002 05:12:54 -0000 1.12
@@ -3,8 +3,6 @@
@pretext@
@portal_id@
@admin_p@
+@admin_p@
-
-
-
@rendered_page@
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.13 -r1.14
--- openacs-4/packages/dotlrn/www/one-community.adp 14 Feb 2002 19:43:11 -0000 1.13
+++ openacs-4/packages/dotlrn/www/one-community.adp 6 Mar 2002 05:12:54 -0000 1.14
@@ -4,7 +4,6 @@
@pretext@
@portal_id@
@admin_p@
-@control_panel_text@
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.20 -r1.21
--- openacs-4/packages/dotlrn/www/one-community.tcl 18 Feb 2002 20:53:57 -0000 1.20
+++ openacs-4/packages/dotlrn/www/one-community.tcl 6 Mar 2002 05:12:54 -0000 1.21
@@ -15,17 +15,15 @@
ad_script_abort
}
+# Get basic information
set user_id [ad_conn user_id]
-
-# What community type are we at?
set community_id [dotlrn_community::get_community_id]
-
-# Get basic information
set pretty_name [dotlrn_community::get_community_name $community_id]
+set admin_p [dotlrn::user_can_admin_community_p \
+ -user_id $user_id \
+ $community_id
+]
-set admin_p [dotlrn::user_can_admin_community_p $community_id]
-
-
# are we in a subcomm? if so, we need to set up the text and navbar
set pretext ""
set parent_id [dotlrn_community::get_parent_id \
@@ -50,6 +48,8 @@
# Possible that there is no portal page for non-members
if {! [empty_string_p $portal_id]} {
set rendered_page [dotlrn::render_page -hide_links_p "t" -page_num $page_num $portal_id]
+
+
} else {
set rendered_page ""
}
@@ -66,7 +66,6 @@
set rendered_page [dotlrn::render_page -hide_links_p "t" -page_num $page_num $portal_id]
set context_bar {View}
- set control_panel_text "Group Admin"
set url_stub "one-community"
ad_return_template