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 -N -r1.34.2.1 -r1.34.2.2 --- openacs-4/packages/forums/www/message-view.tcl 10 Apr 2007 06:12:58 -0000 1.34.2.1 +++ openacs-4/packages/forums/www/message-view.tcl 23 May 2007 19:13:33 -0000 1.34.2.2 @@ -95,8 +95,6 @@ set thread_url [export_vars -base forum-view { { forum_id $message(forum_id) } }] set dynamic_script " - - " if {$forum(presentation_type) eq "flat"} { set display_mode flat } -set page_title "#forums.Thread_title#" \ No newline at end of file +# 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 + +# js scripts +if {![template::multirow exists script]} { + template::multirow create script type src charset defer content +} + +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#"