Index: openacs-4/packages/bookmarks/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/index.adp,v diff -u -r1.18 -r1.19 --- openacs-4/packages/bookmarks/www/index.adp 3 Jul 2015 11:19:04 -0000 1.18 +++ openacs-4/packages/bookmarks/www/index.adp 30 Jul 2015 10:37:42 -0000 1.19 @@ -8,7 +8,8 @@ -<% set folder_bgcolor [parameter::get -parameter FolderBGColor -default "#f3f3f3"] +<% +set folder_bgcolor [parameter::get -parameter FolderBGColor -default "#f3f3f3"] set bookmark_bgcolor [parameter::get -parameter BookmarkBGColor -default "#ffffff"] set edit_anchor "Edit" set delete_anchor "Delete" @@ -55,25 +56,31 @@ append decoration_close "" } - regsub -all {'|"} @bookmark.bookmark_title;noquote@ {} javascript_title + regsub -all {'|\"} @bookmark.bookmark_title;literal@ {} javascript_title set action_bar "" if { "@bookmark.admin_p@" ne "0" } { - lappend action_bar "$edit_anchor" + lappend action_bar [subst { + $edit_anchor + }] } if { "@bookmark.delete_p@" ne "0" } { - lappend action_bar "$delete_anchor" + lappend action_bar [subst { + $delete_anchor + }] } if {@bookmark.folder_p@ == "f"} { - set url "bookmark-access?bookmark_id=@bookmark.bookmark_id@&url=[ad_urlencode @bookmark.complete_url;noquote@]" + set url "bookmark-access?bookmark_id=@bookmark.bookmark_id;literal@&url=[ad_urlencode @bookmark.complete_url;literal@]" set bgcolor $bookmark_bgcolor set image_url "pics/ftv2doc.gif" - lappend action_bar "Details" + lappend action_bar [subst { + Details + }] } else { set bgcolor $folder_bgcolor - set url "toggle-open-close?bookmark_id=@bookmark.bookmark_id@&viewed_user_id=@viewed_user_id@&sort_by=@sort_by@&browsing_user_id=@browsing_user_id@" + set url "toggle-open-close?bookmark_id=@bookmark.bookmark_id;literal@&viewed_user_id=@viewed_user_id;literal@&sort_by=@sort_by@&browsing_user_id=@browsing_user_id;literal@" # different image_urls for whether or not the folder is open if {@bookmark.closed_p@ == "t"} { @@ -83,19 +90,17 @@ } } - set action_bar [ad_decode $action_bar "" "" "spacer \[[join $action_bar " | "]\] ] + set action_bar [ad_decode $action_bar "" "" "spacer \[[join $action_bar { | }]\]" ] + set private_text [ad_decode @bookmark.private_p;literal@ "t" "private" ""] - - set private_text [ad_decode @bookmark.private_p@ "t" "private" ""] - %> - +
- - + +
spacer height="1">@decoration_open;noquote@@bookmark.bookmark_title;noquote@@decoration_close;noquote@ @action_bar;noquote@ @private_text;noquote@@decoration_open;literal@@bookmark.bookmark_title;literal@@decoration_close;literal@ @action_bar;noquote@ @private_text;literal@