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.10 -r1.10.2.1
--- openacs-4/packages/forums/www/message-email.adp 8 Aug 2006 21:26:53 -0000 1.10
+++ openacs-4/packages/forums/www/message-email.adp 23 May 2007 19:13:33 -0000 1.10.2.1
@@ -9,6 +9,8 @@
+ link
+
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.13 -r1.13.6.1
--- openacs-4/packages/forums/www/message-email.tcl 15 Mar 2005 20:06:45 -0000 1.13
+++ openacs-4/packages/forums/www/message-email.tcl 23 May 2007 19:13:33 -0000 1.13.6.1
@@ -53,4 +53,48 @@
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
+}
+
+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.15 -r1.15.2.1
--- openacs-4/packages/forums/www/message-post-confirm.adp 8 Aug 2006 21:26:53 -0000 1.15
+++ openacs-4/packages/forums/www/message-post-confirm.adp 23 May 2007 19:13:33 -0000 1.15.2.1
@@ -9,6 +9,8 @@
+
link
+
+
link
+
- @dynamic_script;noquote@
+
+
+
+
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.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#"
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.10 -r1.10.2.1
--- openacs-4/packages/forums/www/moderate/message-delete.adp 8 Aug 2006 21:26:53 -0000 1.10
+++ openacs-4/packages/forums/www/moderate/message-delete.adp 23 May 2007 19:13:33 -0000 1.10.2.1
@@ -4,14 +4,10 @@
-
+
+
+
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.10 -r1.10.10.1
--- openacs-4/packages/forums/www/moderate/message-delete.tcl 17 Dec 2003 15:45:31 -0000 1.10
+++ openacs-4/packages/forums/www/moderate/message-delete.tcl 23 May 2007 19:13:33 -0000 1.10.10.1
@@ -18,4 +18,43 @@
# Select the stuff
forum::message::get -message_id $message_id -array message
+set dynamic_script "
+
+"
+# 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
+
+# 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" \
+ "" \
+ "" \
+ "" \
+ $dynamic_script
+
ad_return_template