Index: openacs-4/packages/acs-developer-support/lib/toolbar.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/lib/toolbar.adp,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/acs-developer-support/lib/toolbar.adp 3 Feb 2005 11:42:29 -0000 1.12
+++ openacs-4/packages/acs-developer-support/lib/toolbar.adp 4 Feb 2005 15:26:11 -0000 1.13
@@ -7,11 +7,9 @@
|
Index: openacs-4/packages/acs-developer-support/lib/toolbar.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/lib/toolbar.tcl,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/acs-developer-support/lib/toolbar.tcl 3 Feb 2005 11:42:29 -0000 1.6
+++ openacs-4/packages/acs-developer-support/lib/toolbar.tcl 4 Feb 2005 15:26:11 -0000 1.7
@@ -7,33 +7,46 @@
if { $show_p } {
set ds_url [ds_support_url]
- set comments_p [ds_comments_p]
- set comments_toggle_url [export_vars -base "${ds_url}comments-toggle" { { return_url [ad_return_url] } }]
- set comments_on [ad_decode $comments_p 1 "on" "off"]
-
set num_comments [llength [ds_get_comments]]
- set user_switching_p [ds_user_switching_enabled_p]
- set user_switching_toggle_url [export_vars -base "${ds_url}set-user-switching-enabled" { { enabled_p {[expr !$user_switching_p]} } { return_url [ad_return_url] } }]
- set user_switching_on [ad_decode $user_switching_p 1 "on" "off"]
+ multirow create ds_buttons label title toggle_url state
- set db_p [ds_database_enabled_p]
- set db_toggle_url [export_vars -base "${ds_url}set-database-enabled" { { enabled_p {[expr !$db_p]} } { return_url [ad_return_url] } }]
- set db_on [ad_decode $db_p 1 "on" "off"]
+ # multirow append ds_buttons COM \
+ "Display comments inline" \
+ [export_vars -base "${ds_url}comments-toggle" { { return_url [ad_return_url] } }] \
+ [ad_decode [ds_comments_p] 1 "on" "off"]
- set translator_p [lang::util::translator_mode_p]
- set translator_toggle_url [export_vars -base "/acs-lang/admin/translator-mode-toggle" { { return_url [ad_return_url] } }]
- set translator_on [ad_decode $translator_p 1 "on" "off"]
+ multirow append ds_buttons USR \
+ "Toggle user switching" \
+ [export_vars -base "${ds_url}set" { {field user} {enabled_p {[expr ![ds_user_switching_enabled_p]]}} {return_url [ad_return_url]} }] \
+ [ad_decode [ds_user_switching_enabled_p] 1 "on" "off"]
- set adp_p [ds_adp_reveal_enabled_p]
- set adp_toggle_url {javascript:void(d=document);void(el=d.getElementsByTagName('span'));for(i=0;iOpenACS Shell
Developer support toolbar is currently
[ad_decode $enabled_p 1 \
- "on (turn it off)" \
- "off (turn it on)"]
+ "on (turn it off)" \
+ "off (turn it on)"]
Developer support information is currently
restricted to the following IP addresses:
@@ -69,18 +69,18 @@
User-switching is currently
[ad_decode $user_switching_enabled_p 1 \
- "on (turn it off)" \
- "off (turn it on)"]
+ "on (turn it off)" \
+ "off (turn it on)"]
Database statistics is currently
[ad_decode $database_enabled_p 1 \
- "on (turn it off)" \
- "off (turn it on)"]
+ "on (turn it off)" \
+ "off (turn it on)"]
ADP reveal is currently
[ad_decode $adp_reveal_enabled_p 1 \
- "on (turn it off)" \
- "off (turn it on)"]
+ "on (turn it off)" \
+ "off (turn it on)"]
Help on edit and code links.
Index: openacs-4/packages/acs-developer-support/www/request-info.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/request-info.tcl,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/acs-developer-support/www/request-info.tcl 4 Feb 2005 13:34:40 -0000 1.12
+++ openacs-4/packages/acs-developer-support/www/request-info.tcl 4 Feb 2005 15:26:12 -0000 1.13
@@ -16,15 +16,20 @@
set page_title "Request Information"
set context [list $page_title]
+if { [ns_cache get ds_page_bits $request dummy] } {
+ set page_fragment_cache_p 1
+} else {
+ set page_fragment_cache_p 0
+}
+
+
foreach name [nsv_array names ds_request] {
ns_log Debug "DS: Checking request $request, $name."
if { [regexp {^([0-9]+)\.([a-z]+)$} $name "" m_request key] && $m_request == $request } {
set property($key) [nsv_get ds_request $name]
}
}
-set page_fragment_cache_p [ds_page_fragment_cache_enabled_p]
-
if { [info exists property(start)] } {
append body "
Parameters
Index: openacs-4/packages/acs-developer-support/www/search.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/search.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-developer-support/www/search.adp 4 Feb 2005 13:34:40 -0000 1.1
+++ openacs-4/packages/acs-developer-support/www/search.adp 4 Feb 2005 15:26:12 -0000 1.2
@@ -7,7 +7,7 @@
- @matches.file_links;noquote@ @matches.page@ @matches.size@ bytes
@matches.excerpt@
+ @matches.file_links;noquote@ @matches.page@ @matches.size@ bytes
@matches.excerpt;noquote@
Index: openacs-4/packages/acs-developer-support/www/search.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/search.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-developer-support/www/search.tcl 4 Feb 2005 13:34:40 -0000 1.1
+++ openacs-4/packages/acs-developer-support/www/search.tcl 4 Feb 2005 15:26:12 -0000 1.2
@@ -26,8 +26,9 @@
append file_links " c"
append file_links " o"
set size [string length $content]
+ set highlight "...[ad_quotehtml [string trimleft [string range $content [expr [lindex $offset 0] - 50] [expr [lindex $offset 0] - 1]]]][ad_quotehtml [string range $content [lindex $offset 0] [lindex $offset 1]]][ad_quotehtml [string trimright [string range $content [expr [lindex $offset 1] + 1] [expr [lindex $offset 1] + 50]]]]..."
- multirow append matches $page "...[string trim [string range $content [expr [lindex $offset 0] - 50] [expr [lindex $offset 1] + 50]]]..." $file_links $size
+ multirow append matches $page $highlight $file_links $size
}
set matched($page) 1
}
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-developer-support/www/set-adp-reveal-enabled.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-developer-support/www/set-database-enabled.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-developer-support/www/set-enabled.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-developer-support/www/set-user-switching-enabled.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-developer-support/www/set.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/set.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-developer-support/www/set.tcl 4 Feb 2005 15:26:12 -0000 1.1
@@ -0,0 +1,39 @@
+ad_page_contract {
+ Consolidated the various toggle pages into one.
+
+ @author Lars Pind (lars@pinds.com)
+ @author Jeff Davis
+ @creation-date 2003-10-28
+ @cvs-id $Id: set.tcl,v 1.1 2005/02/04 15:26:12 jeffd Exp $
+} {
+ field
+ enabled_p
+ {return_url "."}
+}
+
+ds_require_permission [ad_conn package_id] "admin"
+
+switch -- $field {
+ com {
+ parameter::set_value -package_id [ds_instance_id] -parameter ShowCommentsInlineP -value $enabled_p
+ }
+ adp {
+ ds_set_adp_reveal_enabled $enabled_p
+ }
+ db {
+ ds_set_database_enabled $enabled_p
+ }
+ ds {
+ nsv_set ds_properties enabled_p $enabled_p
+ }
+ frag {
+ nsv_set ds_properties page_fragment_cache_p $enabled_p
+ }
+ user {
+ ds_set_user_switching_enabled $enabled_p
+ }
+ default {
+ ns_return 200 text/plain "bad field $field"
+ }
+}
+ad_returnredirect $return_url
Index: openacs-4/packages/acs-developer-support/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/admin/index.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-developer-support/www/admin/index.tcl 4 Feb 2005 15:26:12 -0000 1.1
@@ -0,0 +1 @@
+ad_returnredirect ..