@communities.pretty_name@ |
-
+ |
()
Index: openacs-4/packages/dotlrn/www/community-member.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn/www/community-member.adp 22 Jan 2002 20:50:35 -0000 1.1
+++ openacs-4/packages/dotlrn/www/community-member.adp 23 Jan 2002 00:15:43 -0000 1.2
@@ -19,13 +19,13 @@
this user is deleted
-
+
this user is deleted and
banned from the community.
-
+
Index: openacs-4/packages/dotlrn/www/community-member.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn/www/community-member.tcl 22 Jan 2002 20:50:35 -0000 1.1
+++ openacs-4/packages/dotlrn/www/community-member.tcl 23 Jan 2002 00:15:43 -0000 1.2
@@ -1,6 +1,6 @@
ad_page_contract {
shows User A what User B has contributed to the community
-
+
@author yon (yon@openforce.net)
@creation-date 2002-01-22
@version $Id$
Index: openacs-4/packages/dotlrn/www/community-type.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/community-type.tcl 21 Jan 2002 06:30:11 -0000 1.3
+++ openacs-4/packages/dotlrn/www/community-type.tcl 23 Jan 2002 00:15:43 -0000 1.4
@@ -13,7 +13,7 @@
if {[ad_parameter community_type_level_p] != 1} {
ad_returnredirect "./"
ad_script_abort
-}
+}
set user_id [ad_conn user_id]
Index: openacs-4/packages/dotlrn/www/community.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/community.tcl 21 Jan 2002 06:30:11 -0000 1.3
+++ openacs-4/packages/dotlrn/www/community.tcl 23 Jan 2002 00:15:43 -0000 1.4
@@ -1,6 +1,6 @@
ad_page_contract {
Displays a community
-
+
@author Ben Adida (ben@openforce.net)
@creation-date 2001-10-04
} -query {
Index: openacs-4/packages/dotlrn/www/configure-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-2.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/configure-2.tcl 20 Jan 2002 19:43:46 -0000 1.3
+++ openacs-4/packages/dotlrn/www/configure-2.tcl 23 Jan 2002 00:15:43 -0000 1.4
@@ -1,6 +1,6 @@
ad_page_contract {
A simple target for the portal configuration
-
+
@author Arjun Sanyal (arjun@openforce.net)
@author Ben Adida (ben@openforce.net)
@creation-date 2001-10-24
Index: openacs-4/packages/dotlrn/www/configure-element-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element-2.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn/www/configure-element-2.tcl 20 Jan 2002 19:43:46 -0000 1.2
+++ openacs-4/packages/dotlrn/www/configure-element-2.tcl 23 Jan 2002 00:15:43 -0000 1.3
@@ -1,6 +1,6 @@
ad_page_contract {
A simple target for the portal element configuration
-
+
@author Arjun Sanyal (arjun@openforce.net)
@author Ben Adida (ben@openforce.net)
@creation-date 2001-10-24
Index: openacs-4/packages/dotlrn/www/configure-element.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/configure-element.tcl 21 Jan 2002 06:30:11 -0000 1.4
+++ openacs-4/packages/dotlrn/www/configure-element.tcl 23 Jan 2002 00:15:43 -0000 1.5
@@ -1,7 +1,7 @@
ad_page_contract {
Displays an element configuration page
-
+
@author Ben Adida (ben@openforce.net)
@author Arjun Sanyal (arjun@openforce.net)
@creation-date 2001-10-24
@@ -41,10 +41,10 @@
}
} else {
# this not a community, it is the "workspace" deal
-
+
# Get the page
set portal_id [db_string select_portal_id {} -default ""]
-
+
# If there is no portal_id, this user is either a guest or something else
if {[empty_string_p $portal_id]} {
# do something
@@ -53,8 +53,8 @@
set rendered_page [portal::configure_element $element_id $op "index"]
}
}
-
-ad_return_template
+ad_return_template
+
Index: openacs-4/packages/dotlrn/www/configure.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotlrn/www/configure.tcl 20 Jan 2002 19:43:46 -0000 1.5
+++ openacs-4/packages/dotlrn/www/configure.tcl 23 Jan 2002 00:15:43 -0000 1.6
@@ -1,6 +1,6 @@
ad_page_contract {
Displays a configuration page
-
+
@author Ben Adida (ben@openforce.net)
@author Arjun Sanyal (arjun@openforce.net)
@author yon (yon@openforce.net)
@@ -40,7 +40,7 @@
# Get the page
set portal_id [db_string select_portal_id {} -default ""]
-
+
# If there is no portal_id, this user is either a guest or something else
if {[empty_string_p $portal_id]} {
# do something
@@ -50,5 +50,5 @@
set name [portal::get_name $portal_id]
}
}
-
+
ad_return_template
Index: openacs-4/packages/dotlrn/www/deregister.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/deregister.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn/www/deregister.tcl 20 Jan 2002 19:17:39 -0000 1.1
+++ openacs-4/packages/dotlrn/www/deregister.tcl 23 Jan 2002 00:15:43 -0000 1.2
@@ -1,6 +1,6 @@
ad_page_contract {
deregister
-
+
@author Ben Adida (ben@openforce.net)
@author yon (yon@openforce.net)
@creation-date 2001-10-06
Index: openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 22 Jan 2002 00:41:35 -0000 1.3
+++ openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 23 Jan 2002 00:15:43 -0000 1.4
@@ -8,11 +8,13 @@
Index: openacs-4/packages/dotlrn/www/dotlrn-main-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/dotlrn-main-portlet.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn/www/dotlrn-main-portlet.tcl 21 Jan 2002 07:47:09 -0000 1.1
+++ openacs-4/packages/dotlrn/www/dotlrn-main-portlet.tcl 23 Jan 2002 00:15:43 -0000 1.2
@@ -1,29 +1,28 @@
# dotlrn/www/dotlrn-main-portlet-procs.tcl
+
ad_page_contract {
The display logic for the dotlrn main (Groups) portlet
@author Arjun Sanyal (arjun@openforce.net)
- @cvs_id $Id$
+ @version $Id$
}
-array set config $cf
+set user_id [ad_conn user_id]
-set user_id [ad_get_user_id]
-set list_of_communities [dotlrn_community::get_all_communities_by_user $user_id]
-set my_community_id [lindex $list_of_communities 0]
+set sql {
+ select dotlrn_communities.community_id,
+ dotlrn_communities.community_type,
+ dotlrn_communities.community_key,
+ dotlrn_communities.pretty_name,
+ dotlrn_communities.package_id
+ from dotlrn_communities,
+ dotlrn_member_rels_full
+ where dotlrn_communities.community_id = dotlrn_member_rels_full.community_id
+ and dotlrn_member_rels_full.user_id = :user_id
+}
-db_multirow -local communities select_communities "
-select dotlrn_communities.community_id,
-dotlrn_communities.community_type,
-dotlrn_communities.community_key,
-dotlrn_communities.pretty_name,
-dotlrn_communities.package_id
-from dotlrn_communities,
-dotlrn_member_rels_full
-where dotlrn_communities.community_id = dotlrn_member_rels_full.community_id
-and dotlrn_member_rels_full.user_id = :user_id" {
-# ad_return_complaint 1 "aks [info locals] ${communities(package_id)}"
- set communities(url) [dotlrn_community::get_url_from_package_id -package_id ${communities(package_id)} ]
+db_multirow -local communities select_communities $sql {
+ set communities(url) [dotlrn_community::get_url_from_package_id -package_id ${communities(package_id)}]
}
ad_return_template
Index: openacs-4/packages/dotlrn/www/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index.tcl,v
diff -u -r1.21 -r1.22
--- openacs-4/packages/dotlrn/www/index.tcl 17 Jan 2002 21:59:51 -0000 1.21
+++ openacs-4/packages/dotlrn/www/index.tcl 23 Jan 2002 00:15:43 -0000 1.22
@@ -1,6 +1,6 @@
ad_page_contract {
Displays the personal home page
-
+
@author Ben Adida (ben@openforce.net)
@creation-date 2001-08-20
@version $Id$
@@ -54,5 +54,5 @@
}
set rendered_page [dotlrn::render_page -hide_links_p "t" $portal_id]
-
+
ad_return_template
Index: openacs-4/packages/dotlrn/www/join-policy-toggle.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/join-policy-toggle.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn/www/join-policy-toggle.tcl 20 Jan 2002 06:11:04 -0000 1.1
+++ openacs-4/packages/dotlrn/www/join-policy-toggle.tcl 23 Jan 2002 00:15:43 -0000 1.2
@@ -1,6 +1,6 @@
ad_page_contract {
Change the join policy of a dotLRN community.
-
+
@author yon (yon@openforce.net)
@creation-date 2002-01-18
@version $Id$
Index: openacs-4/packages/dotlrn/www/master.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/master.adp,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/dotlrn/www/master.adp 21 Jan 2002 19:07:55 -0000 1.7
+++ openacs-4/packages/dotlrn/www/master.adp 23 Jan 2002 00:15:43 -0000 1.8
@@ -9,12 +9,12 @@
|
-
+ |
|
- @text@
+ @text@
|
Index: openacs-4/packages/dotlrn/www/master.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/master.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotlrn/www/master.tcl 22 Jan 2002 20:02:30 -0000 1.5
+++ openacs-4/packages/dotlrn/www/master.tcl 23 Jan 2002 00:15:43 -0000 1.6
@@ -6,9 +6,9 @@
if {![empty_string_p $portal_id] && ![exists_and_not_null no_navbar_p]} {
# if {[portal::page_count -portal_id $portal_id] > 1} {
set navbar " "
-
+
append navbar [portal::list_pages -portal_id $portal_id -link "switch-page" -pre_html " " -separator " | " -post_html " | "]
-
+
append navbar "
"
# } else {
# set navbar ""
@@ -21,7 +21,7 @@
db_0or1row pvt_home_user_info {
select first_names, last_name
- from cc_users
+ from cc_users
where user_id=:user_id
}
Index: openacs-4/packages/dotlrn/www/member-add-2.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/member-add-2.adp,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/member-add-2.adp 21 Jan 2002 06:30:11 -0000 1.4
+++ openacs-4/packages/dotlrn/www/member-add-2.adp 23 Jan 2002 00:15:43 -0000 1.5
@@ -7,7 +7,7 @@
|