[Rt-commit] [svn] r1907 - in rt/branches/3.3-TESTING: . bin html html/Elements html/NoAuth sbin

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Mon Nov 15 16:19:50 EST 2004


Author: jesse
Date: Mon Nov 15 16:19:49 2004
New Revision: 1907

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/bin/webmux.pl.in
   rt/branches/3.3-TESTING/html/Elements/Footer
   rt/branches/3.3-TESTING/html/NoAuth/webrt.css
   rt/branches/3.3-TESTING/html/autohandler
   rt/branches/3.3-TESTING/sbin/rt-test-dependencies.in
Log:
 r9270 at tinbook:  jesse | 2004-11-15T21:17:01.591994Z
 Moved render time display out of an "if developer" block into a main-page div. Set up css to display it small and very de-emphasized


Modified: rt/branches/3.3-TESTING/bin/webmux.pl.in
==============================================================================
--- rt/branches/3.3-TESTING/bin/webmux.pl.in	(original)
+++ rt/branches/3.3-TESTING/bin/webmux.pl.in	Mon Nov 15 16:19:49 2004
@@ -90,6 +90,7 @@
     use Text::Wrapper;
     use CGI::Cookie;
     use Time::ParseDate;
+    use Time::Hires;
     use HTML::Entities;
     use HTML::Scrubber;
     use Text::Quoted;

Modified: rt/branches/3.3-TESTING/html/Elements/Footer
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/Footer	(original)
+++ rt/branches/3.3-TESTING/html/Elements/Footer	Mon Nov 15 16:19:49 2004
@@ -61,10 +61,6 @@
 <&|/l, '<a href="mailto:sales at bestpractical.com">sales at bestpractical.com</a>' &>To inquire about support, training, custom development or licensing, please contact [_1].</&><br>
 % }
 </div>
-% if ($Debug) {
-<HR>
-<b><&|/l&>Time to display</&>: <%Time::HiRes::tv_interval( $m->{'rt_base_time'} )%></b>
-% }
 % if ($Debug >= 2 ) {
 % require Data::Dumper;
 % my $d = Data::Dumper->new([\%ARGS], [qw(%ARGS)]);
@@ -72,6 +68,7 @@
 <%$d->Dump() %>
 </pre>
 % }
+<div class="page-stats"><&|/l&>Time to display</&>: <%Time::HiRes::tv_interval( $m->{'rt_base_time'} )%></div>
 % if ($Menu) {
 </TD>
 </TR>

Modified: rt/branches/3.3-TESTING/html/NoAuth/webrt.css
==============================================================================
--- rt/branches/3.3-TESTING/html/NoAuth/webrt.css	(original)
+++ rt/branches/3.3-TESTING/html/NoAuth/webrt.css	Mon Nov 15 16:19:49 2004
@@ -546,6 +546,12 @@
 SPAN.label { font-size: 0.8em; 
 }
 
+DIV.page-stats { font-size: 0.8em;
+                  color: #cccccc;
+                  text-align: right;
+              };
+
+
 BLOCKQUOTE {
   font-style: italic;
 }

Modified: rt/branches/3.3-TESTING/html/autohandler
==============================================================================
--- rt/branches/3.3-TESTING/html/autohandler	(original)
+++ rt/branches/3.3-TESTING/html/autohandler	Mon Nov 15 16:19:49 2004
@@ -68,14 +68,8 @@
 	? { map { ref($_) ? $_ : Encode::decode(utf8 => $_, Encode::FB_PERLQQ) } %$_ } : $_
     } %ARGS;
 
-if ($ARGS{'Debug'}) {
-        require Time::HiRes;
-        $m->{'rt_base_time'} = [Time::HiRes::gettimeofday()];
+$m->{'rt_base_time'} = [Time::HiRes::gettimeofday()];
         
-}
-else {
-        $m->{'rt_base_time'} = time;
-}
 $m->comp('/Elements/SetupSessionCookie', %ARGS);
 
 unless ($session{'CurrentUser'} && $session{'CurrentUser'}->Id) {

Modified: rt/branches/3.3-TESTING/sbin/rt-test-dependencies.in
==============================================================================
--- rt/branches/3.3-TESTING/sbin/rt-test-dependencies.in	(original)
+++ rt/branches/3.3-TESTING/sbin/rt-test-dependencies.in	Mon Nov 15 16:19:49 2004
@@ -136,6 +136,7 @@
 Net::SMTP
 Text::Wrapper 
 Time::ParseDate
+Time::HiRes 
 File::Temp
 Term::ReadKey
 Text::Autoformat
@@ -175,7 +176,6 @@
 
 $deps{'DEV'} = [ _( << '.') ];
 Regexp::Common
-Time::HiRes 
 Test::Inline 
 Apache::Test
 HTML::Form


More information about the Rt-commit mailing list