[Rt-commit] r15897 - in rt/branches/3.999-DANGEROUS: share/html/Elements share/html/_elements

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Sep 10 14:17:26 EDT 2008


Author: sunnavy
Date: Wed Sep 10 14:17:25 2008
New Revision: 15897

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/share/html/Elements/Footer
   rt/branches/3.999-DANGEROUS/share/html/Elements/Header
   rt/branches/3.999-DANGEROUS/share/html/_elements/wrapper

Log:
 r16596 at sunnavys-mb:  sunnavy | 2008-09-11 01:39:07 +0800
 refactor a bit for wrapper,header and footer


Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/Footer
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/Footer	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/Footer	Wed Sep 10 14:17:25 2008
@@ -73,6 +73,7 @@
 
 </div>
   </body>
+% Jifty->handler->stash->{'in_body'} = 0;
 </html>
 % $m->abort();
 
@@ -80,3 +81,7 @@
 $debug => 0
 $menu => 1
 </%ARGS>
+
+<%INIT>
+return unless Jifty->handler->stash->{'in_body'};
+</%INIT>

Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/Header
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/Header	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/Header	Wed Sep 10 14:17:25 2008
@@ -80,6 +80,7 @@
 % $m->callback( %ARGS, Callbackname => 'head' );
 
 </head>
+% Jifty->handler->stash->{'in_body'} = 1;
   <body<% $id && qq[ id="comp-$id"] |n %>>
 
 % if ($show_bar && Jifty->web->current_user) {

Modified: rt/branches/3.999-DANGEROUS/share/html/_elements/wrapper
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/_elements/wrapper	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/_elements/wrapper	Wed Sep 10 14:17:25 2008
@@ -58,10 +58,6 @@
 % unless ( $no_wrap ) {
 <& /Elements/Footer, %{Jifty->web->request->arguments} &>
 % }
-
-</body>
-% Jifty->handler->stash->{'in_body'} = 0;
-</html>
 <%args>
 $prefs => '/Prefs/Other.html'
 $focus => ''


More information about the Rt-commit mailing list