[Rt-commit] r12790 - in rt/branches/3.8-TESTING: . share/html/NoAuth/css/web2/images share/html/NoAuth/css/web2/images/source

jesse at bestpractical.com jesse at bestpractical.com
Mon Jun 2 11:22:53 EDT 2008


Author: jesse
Date: Mon Jun  2 11:22:50 2008
New Revision: 12790

Added:
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/dhandler
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/source/
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/source/background-gradient.png
      - copied unchanged from r12789, /rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/background-gradient.png
Removed:
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/background-gradient.png
Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/layout.css

Log:
 r32097 at 31b:  jesse | 2008-06-02 11:18:04 -0400
 * CSS Background fixes


Added: rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/dhandler
==============================================================================
--- (empty file)
+++ rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/images/dhandler	Mon Jun  2 11:22:50 2008
@@ -0,0 +1,25 @@
+<%INIT>
+&RT::Interface::Web::StaticFileHeaders();
+use File::Basename;
+my $arg = $m->dhandler_arg;
+my $file = dirname($m->current_comp->source_file) . '/source/'. $arg;
+
+my $type = "application/octet-stream";
+if ($file =~ /\.(gif|png|jpe?g)$/i) {
+    $type = "image/$1";
+    $type =~ s/jpg/jpeg/gi;
+}
+
+die "File $file not found" unless -f $file && -r _;
+
+$r->content_type($type);
+open my $fh, "<$file" or die "couldn't open file: $!";
+binmode($fh);
+{
+    local $/ = \16384;
+    $m->out($_) while (<$fh>);
+    $m->flush_buffer;
+}
+close $fh;
+$m->abort;
+</%INIT>

Modified: rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/layout.css
==============================================================================
--- rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/layout.css	(original)
+++ rt/branches/3.8-TESTING/share/html/NoAuth/css/web2/layout.css	Mon Jun  2 11:22:50 2008
@@ -55,8 +55,7 @@
     padding:0;
     margin:0;
 
-    background-color: #183b83;
-    background: #183b83 url(<%RT->Config->Get('WebPath')%>/NoAuth/css/web2/background-gradient.png) top left repeat-x ;
+    background: #547CCC url(<%RT->Config->Get('WebPath')%>/NoAuth/css/web2/images/background-gradient.png) top left repeat-x ;
     font-family: helvetica, arial, sans-serif;
 
 }


More information about the Rt-commit mailing list