Index: openacs-4/packages/forums/www/message-email.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-email.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/forums/www/message-email.adp 7 Oct 2007 22:37:01 -0000 1.11 +++ openacs-4/packages/forums/www/message-email.adp 13 Dec 2007 14:22:54 -0000 1.12 @@ -1,16 +1,7 @@ #forums.Email_Message# @message.forum_name;noquote@ - @message.subject;noquote@ @context;noquote@ - - - - - - - - link -

#forums.lt_Email_a_copy_of_the_f#

Index: openacs-4/packages/forums/www/message-email.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-email.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/forums/www/message-email.tcl 7 Oct 2007 22:37:01 -0000 1.14 +++ openacs-4/packages/forums/www/message-email.tcl 13 Dec 2007 14:22:54 -0000 1.15 @@ -53,48 +53,11 @@ lappend context [list "./message-view?message_id=$message(message_id)" "$message(subject)"] lappend context [_ forums.Email_to_a_friend] -if {![template::multirow exists link]} { - template::multirow create link rel type href title lang media -} +set lang [ad_conn language] +template::head::add_css -href /resources/forums/forums.css -media all -lang $lang +template::head::add_css -alternate -href /resources/forums/flat.css -media all -lang $lang -title "flat" +template::head::add_css -alternate -href /resources/forums/flat-collapse.css -media all -lang $lang -title "flat-collapse" +template::head::add_css -alternate -href /resources/forums/collapse.css -media all -lang $lang -title "collapse" +template::head::add_css -alternate -href /resources/forums/expand.css -media all -lang $lang -title "expand" -template::multirow append link \ - stylesheet \ - text/css \ - /resources/forums/forums.css \ - "" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/flat.css \ - "flat" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/flat-collapse.css \ - "flat-collapse" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/collapse.css \ - "collapse" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/expand.css \ - "expand" \ - [ad_conn language] \ - all - ad_return_template Index: openacs-4/packages/forums/www/message-post-confirm.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-post-confirm.adp,v diff -u -r1.16 -r1.17 --- openacs-4/packages/forums/www/message-post-confirm.adp 7 Oct 2007 22:37:01 -0000 1.16 +++ openacs-4/packages/forums/www/message-post-confirm.adp 13 Dec 2007 14:22:54 -0000 1.17 @@ -1,16 +1,7 @@ #forums.Confirm_Post_to_Forum# @forum.name;noquote@ @context;noquote@ - - - - - - - - link - #forums.Post_to_Forum# @forum.name;noquote@ @context;noquote@ message.subject - - - - - - - - link - @context;noquote@ @message_id@ - - - - - - - - - - - - - -link -script -

@page_title;noquote@

Index: openacs-4/packages/forums/www/message-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-view.tcl,v diff -u -r1.38 -r1.39 --- openacs-4/packages/forums/www/message-view.tcl 7 Oct 2007 22:37:01 -0000 1.38 +++ openacs-4/packages/forums/www/message-view.tcl 13 Dec 2007 14:22:54 -0000 1.39 @@ -116,76 +116,17 @@ } # stylesheets -if {![template::multirow exists link]} { - template::multirow create link rel type href title lang media -} - -template::multirow append link \ - stylesheet \ - text/css \ - /resources/forums/forums.css \ - "" \ - [ad_conn language] \ - all - -template::multirow append link \ - stylesheet \ - text/css \ - /resources/forums/print.css \ - "" \ - [ad_conn language] \ - print - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/flat.css \ - "flat" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/flat-collapse.css \ - "flat-collapse" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/collapse.css \ - "collapse" \ - [ad_conn language] \ - all - -template::multirow append link \ - "alternate stylesheet" \ - text/css \ - /resources/forums/expand.css \ - "expand" \ - [ad_conn language] \ - all - +set lang [ad_conn language] +template::head::add_css -href /resources/forums/forums.css -media all -lang $lang +template::head::add_css -alternate -href /resources/forums/flat.css -media all -lang $lang -title "flat" +template::head::add_css -alternate -href /resources/forums/flat-collapse.css -media all -lang $lang -title "flat-collapse" +template::head::add_css -alternate -href /resources/forums/collapse.css -media all -lang $lang -title "collapse" +template::head::add_css -alternate -href /resources/forums/expand.css -media all -lang $lang -title "expand" +template::head::add_css -alternate -href /resources/forums/print.css -media print -lang $lang + # js scripts -if {![template::multirow exists script]} { - template::multirow create script type src charset defer content -} +template::head::add_script -type "text/javascript" -src "/resources/forums/forums.js" +template::head::add_script -type "text/javascript" -src "/resources/forums/dynamic-comments.js" +template::head::add_script -type "text/javascript" -script $dynamic_script -template::multirow append script \ - "text/javascript" \ - "/resources/forums/forums.js" - -template::multirow append script \ - "text/javascript" \ - "/resources/forums/dynamic-comments.js" - -template::multirow append script \ - "text/javascript" \ - "" \ - "" \ - "" \ - $dynamic_script - set page_title "#forums.Thread_title#" Index: openacs-4/packages/forums/www/moderate/message-delete.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/moderate/message-delete.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/forums/www/moderate/message-delete.adp 7 Oct 2007 22:37:01 -0000 1.11 +++ openacs-4/packages/forums/www/moderate/message-delete.adp 13 Dec 2007 14:22:55 -0000 1.12 @@ -1,13 +1,5 @@ #forums.Confirm_Delete# @message.subject;noquote@ #forums.delete# - - - - - -link -script - Index: openacs-4/packages/forums/www/moderate/message-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/moderate/message-delete.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/forums/www/moderate/message-delete.tcl 7 Oct 2007 22:37:01 -0000 1.11 +++ openacs-4/packages/forums/www/moderate/message-delete.tcl 13 Dec 2007 14:22:55 -0000 1.12 @@ -29,32 +29,11 @@ //--> " # stylesheets -if {![template::multirow exists link]} { - template::multirow create link rel type href title lang media -} +set lang [ad_conn language] +template::head::add_css -href /resources/forums/forums.css -media all -lang $lang -template::multirow append link \ - stylesheet \ - text/css \ - /resources/forums/forums.css \ - "" \ - [ad_conn language] \ - all - # js scripts -if {![template::multirow exists script]} { - template::multirow create script type src charset defer content -} +template::head::add_script -type "text/javascript" -src "/resources/forums/forums.js" +template::head::add_script -type "text/javascript" -script $dynamic_script -template::multirow append script \ - "text/javascript" \ - "/resources/forums/forums.js" - -template::multirow append script \ - "text/javascript" \ - "" \ - "" \ - "" \ - $dynamic_script - ad_return_template