[Rt-commit] r11144 - in rt/branches/3.8-TESTING: html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Thu Mar 20 17:13:27 EDT 2008


Author: jesse
Date: Thu Mar 20 17:13:26 2008
New Revision: 11144

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/html/Elements/Header

Log:
 r28460 at 31b:  jesse | 2008-03-20 17:10:29 -0400
 * Added an "InHeader" mason component that can be added from within a style. This makes it easier to include custom js, for example


Modified: rt/branches/3.8-TESTING/html/Elements/Header
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/Header	(original)
+++ rt/branches/3.8-TESTING/html/Elements/Header	Thu Mar 20 17:13:26 2008
@@ -50,7 +50,6 @@
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
-
 <title><%$Title%></title>
 
 % if ($Refresh && $Refresh > 0) {
@@ -77,7 +76,10 @@
     onLoadHook("<% $onload |n %>");
 % }
 --></script>
-
+% my $stylesheet_plugin = "/NoAuth/css/". RT->Config->Get( 'WebDefaultStylesheet', $session{'CurrentUser'} )."/InHeader";
+% if ($m->comp_exists($stylesheet_plugin) ) {
+<& $stylesheet_plugin &>
+% }
 % $m->callback( %ARGS, CallbackName => 'Head' );
 
 </head>


More information about the Rt-commit mailing list