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.37 -r1.38
--- openacs-4/packages/forums/www/message-view.tcl 15 Jun 2007 11:53:51 -0000 1.37
+++ openacs-4/packages/forums/www/message-view.tcl 7 Oct 2007 22:37:01 -0000 1.38
@@ -101,8 +101,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#"