Minor change to test if the 'href' attribute of the project's logo
element is a relative or absolute URL.  This is why the logo is not
displaying when you browse the T3 docs.  

Fixed the hack I made when I did the stratum docs (removed the leading
slash from href to make it relative).  Now href handling is consistent
with the rest of site.dvsl.

Sorry about the numerous small patches ...

thanks,
Pete

-- 
Peter Kazmier                                 http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654
Index: xdocs/stylesheets/site.dvsl
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-3/xdocs/stylesheets/site.dvsl,v
retrieving revision 1.3
diff -u -r1.3 site.dvsl
--- xdocs/stylesheets/site.dvsl 10 Feb 2002 03:26:23 -0000      1.3
+++ xdocs/stylesheets/site.dvsl 16 Feb 2002 15:29:21 -0000
@@ -52,7 +52,11 @@
 
           ## PROJECT LOGO
           <a href="$home">
+          #if ( $src.startsWith("http") )
             <img src="$src" align="right" alt="$alt" border="0"/>
+          #else
+            <img src="${relative-path}$src" align="right" alt="$alt" border="0"/>
+          #end
           </a>
         #end
 
Index: xdocs/stylesheets/site.dvsl
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-stratum/xdocs/stylesheets/site.dvsl,v
retrieving revision 1.1
diff -u -r1.1 site.dvsl
--- xdocs/stylesheets/site.dvsl 16 Feb 2002 13:35:30 -0000      1.1
+++ xdocs/stylesheets/site.dvsl 16 Feb 2002 15:27:34 -0000
@@ -52,7 +52,11 @@
 
           ## PROJECT LOGO
           <a href="$home">
+          #if ( $src.startsWith("http") )
             <img src="$src" align="right" alt="$alt" border="0"/>
+          #else
+            <img src="${relative-path}$src" align="right" alt="$alt" border="0"/>
+          #end
           </a>
         #end
 
Index: xdocs/project.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-stratum/xdocs/project.xml,v
retrieving revision 1.1
diff -u -r1.1 project.xml
--- xdocs/project.xml   16 Feb 2002 13:35:29 -0000      1.1
+++ xdocs/project.xml   16 Feb 2002 15:27:16 -0000
@@ -2,7 +2,7 @@
 <project name="stratum" href="http://jakarta.apache.org/turbine/stratum/";>
 
   <title>Stratum</title>
-  <logo href="images/logo.gif">Stratum</logo>
+  <logo href="/images/logo.gif">Stratum</logo>
 
   <body>
     <menu name="Essentials">

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to