You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2005/01/20 14:47:51 UTC

cvs commit: logging-log4net/xdocs/src/stylesheets site.vsl

nicko       2005/01/20 05:47:51

  Modified:    xdocs/src/stylesheets site.vsl
  Log:
  Updated velocity template to use new CSS menu
  
  Revision  Changes    Path
  1.3       +92 -122   logging-log4net/xdocs/src/stylesheets/site.vsl
  
  Index: site.vsl
  ===================================================================
  RCS file: /home/cvs/logging-log4net/xdocs/src/stylesheets/site.vsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- site.vsl	17 Jan 2005 20:25:52 -0000	1.2
  +++ site.vsl	20 Jan 2005 13:47:51 -0000	1.3
  @@ -40,64 +40,6 @@
   
   ## This is where the macro's live
   
  -#macro ( table $table)
  -<table>
  -    #foreach ( $items in $table.getChildren() )
  -        #if ($items.getName().equals("tr"))
  -            #tr ($items)
  -        #end
  -    #end
  -</table>
  -#end
  -
  -#macro ( tr $tr)
  -<tr>
  -    #foreach ( $items in $tr.getChildren() )
  -        #if ($items.getName().equals("td"))
  -            #td ($items)
  -        #elseif ($items.getName().equals("th"))
  -            #th ($items)
  -        #end
  -    #end
  -</tr>
  -#end
  -
  -#macro ( td $value)
  -#if ($value.getAttributeValue("colspan"))
  -#set ($colspan = $value.getAttributeValue("colspan"))
  -#end
  -#if ($value.getAttributeValue("rowspan"))
  -#set ($rowspan = $value.getAttributeValue("rowspan"))
  -#end
  -<td bgcolor="$tabletdbg" colspan="$!colspan" rowspan="$!rowspan" valign="top" align="left">
  -    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -        #if ($value.getText().length() != 0 || $value.hasChildren())
  -        $value.getContent()
  -        #else
  -        &nbsp;
  -        #end
  -    </font>
  -</td>
  -#end
  -
  -#macro ( th $value)
  -#if ($value.getAttributeValue("colspan"))
  -#set ($colspan = $value.getAttributeValue("colspan"))
  -#end
  -#if ($value.getAttributeValue("rowspan"))
  -#set ($rowspan = $value.getAttributeValue("rowspan"))
  -#end
  -<th bgcolor="$tablethbg" colspan="$!colspan" rowspan="$!rowspan" valign="top" align="left">
  -    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -        #if ($value.getText().length() != 0 || $value.hasChildren())
  -        $value.getContent()
  -        #else
  -        &nbsp;
  -        #end
  -    </font>
  -</th>
  -#end
  -
   #macro ( projectanchor $name $value )
   #if ($value.startsWith("http://"))
       <a href="$value">$name</a>
  @@ -239,25 +181,16 @@
   
   #macro ( makeNavigationBar )
     <!-- ============================================================ -->
  -  <table id="navbar" border="0" cellspacing="0" cellpadding="0">
  +  <div class="leftcol">
       #set ($menus = $project.getChild("body").getChildren("menu"))
       #foreach ( $menu in $menus )
  -       #if ( $velocityCount != 1 )
  -##         <tr bgcolor="#999999">
  -##       	   <td><html:img page="/images/space2.gif" height="1"></html:img></td>
  -##         </tr>
  -       #end
  -       <tr >
  -       	 <td class="navbarHeader" nowrap="true">
  -           <strong>$menu.getAttributeValue("name")</strong>
  -         </td>
  -       </tr>
  -       #foreach ( $item in $menu.getChildren() )
  +       <div class="menu_header">$menu.getAttributeValue("name")</div>
  +       #foreach ($item in $menu.getChildren() )
          	 #set ($name = $item.getAttributeValue("name"))
  -       	 <tr><td class="navbarItem"><small>#projectanchor($name $item.getAttributeValue("href"))</small></td></tr>
  +       	 <div class="menu_item">#projectanchor($name $item.getAttributeValue("href"))</div>
          #end  
       #end
  -  </table> 
  +  </div> 
      
   #end
   
  @@ -265,33 +198,33 @@
   ##      getProjectImage
   ## ====================================
   #macro (getProjectImage)
  -  #if ($project.getChild("logo"))
  -    <td align="left">
  -       <a href="http://logging.apache.org">
  -           <img src="http://logging.apache.org/images/ls-logo.jpg" border="0"/></a>
  -    </td>
  -    <td align="right">
  -      #set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
  -      #if ( $logoString.startsWith("/") )
  -      	<a href="$project.getAttributeValue("href")">
  -      	  <img src="$relativePath$logoString" 
  -      	       alt="$project.getChild("logo").getText()" border="0"/>
  -      	</a>
  -      #else
  -      	<a href="$project.getAttributeValue("href")">
  -      	  <img src="$relativePath/$logoString" alt="$project.getChild("logo").getText()" border="0"/>
  -      	</a>
  -      #end
  -    </td>
  -
  -  #else
  -    <td colspan="2">
  -      <a href="http://logging.apache.org">
  -        <img src="http://logging.apache.org/images/ls-logo.jpg" align="left" border="0"/>
  -      </a>
  -    </td>
  -  #end
  -
  +   ##<div class="banner">
  +   ##<table class="banner" width="100%" border="0">
  +   <table class="banner" border="0">
  +     <tr>
  +       <td valign="top">
  +         <a href="http://logging.apache.org/">
  +           <img src="http://logging.apache.org/images/ls-logo.jpg" border="0"/>
  +         </a>
  +       </td>
  +       <td align="right">
  +           #if ($project.getChild("logo"))
  +             #set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
  +             #if ( $logoString.startsWith("/") )
  +     	       <a href="$project.getAttributeValue("href")">
  +      	         <img src="$relativePath$logoString" 
  +      	           alt="$project.getChild("logo").getText()" border="0"/>
  +      	       </a>
  +             #else
  +      	       <a href="$project.getAttributeValue("href")">
  +                 <img src="$relativePath/$logoString" alt="$project.getChild("logo").getText()" border="0"/>
  +      	       </a>
  +             #end
  +           #end  
  +       </td>
  +     </tr>
  +   </table>
  +   ##</div>
   #end
   
   #macro (printMeta $metaElement)
  @@ -299,7 +232,28 @@
   #foreach ($a in $attribs) $a.getName()="$a.getValue()" #end />
   #end
   
  +#macro (messages $root)
  +  #foreach ( $m in $root.getChild("body").getChildren() )
  +    #if ($m.getName().equals("message"))
  +      <div class="big">
  +        <a name="$m.getAttributeValue('ref')">
  +         <table>
  +            <tr>
  +             <td valign="top"><b>Message:</b></td>
  +             <td class="msg_title">$m.getChild("title").getContent()</td>
  +            </tr>
  +         </table> 
  +        </a>
  +      </div>
  +      <div class="msg_meaning">
  +        $m.getChild("explanation").getContent()
  +      </div>
  +    #end
  +  #end
  +#end
  +
   #macro (document)
  +    #set ($properties =  $root.getChild("properties") )
       <!-- ====================================================================== -->
       <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
       <!-- Main Page Section -->
  @@ -336,26 +290,31 @@
   
           <body bgcolor="$bodybg" text="$bodyfg" link="$bodylink">        
              <!-- START Header table --> 
  -           <table border="0" cellspacing="0" width="100%">
  -                <!-- TOP IMAGE -->
  -                <tr>
  +##           <table border="0" cellspacing="0" width="100%">
  +##                <!-- TOP IMAGE -->
  +##                <tr>
                       #getProjectImage()
  -                </tr>
  -            </table>
  +##                </tr>
  +##            </table>
              <!-- END Header table --> 
   
  +
  +	   <div class="centercol">
  +        ##     <hr noshade="" size="1"/>
  +
              <!-- START main table --> 
  -            <table id="main" border="0" width="100%" cellspacing="2" cellpadding="0">
  -                <tr><td colspan="2">
  -                    <hr noshade="" size="1"/>
  -                </td></tr>
  +##            <table id="main" border="0" width="100%" cellspacing="2" cellpadding="0">
  +##                <tr><td colspan="2">
  +##                    <hr noshade="" size="1"/>
  +##                </td></tr>
                   
  -                <tr>
  -                    <!-- LEFT SIDE NAVIGATION -->
  -                    <td id="navbar" valign="top" align="left" width="1">
  -                    #makeNavigationBar()
  -                    </td>
  -                    <td id="mainContents" align="left" valign="top" width="*">
  +##                <tr>
  +##                    <!-- LEFT SIDE NAVIGATION -->
  +##                    <td id="navbar" valign="top" align="left" width="1">
  +##                    #makeNavigationBar()
  +##                    </td>
  +##                    <td id="mainContents" align="left" valign="top" width="*">
  +
   	               #foreach ( $item in $root.getChild("body").getChildren() )
                            #if ($item.getName().equals("img"))
                              #image ($item)
  @@ -376,14 +335,19 @@
   ##                      #set ($titleSection = $root.getChild("body").getChild("titleSection"))
   ##                      #titleSection($titleSection)
   ##                    #end
  -                    </td>
  -                </tr>
  +##                    </td>
  +##                </tr>
  +
  +
  +      #messages ($root)	
                
                   <!-- FOOTER -->
  -                <tr><td colspan="2">
  -                    <hr noshade="" size="1"/>
  -                </td></tr>
  -                <tr><td colspan="2">
  +<p>&nbsp;</p>
  +
  +##                <tr><td colspan="2">
  +##                    <hr noshade="" size="1"/>
  +##                </td></tr>
  +##                <tr><td colspan="2">
                       <div align="center"><font color="$bodylink" size="-1"><em>
                       Copyright &#169; 
   		    #if($root.getChild("properties").getChild("copyright").getAttributeValue("year"))
  @@ -401,9 +365,15 @@
   		    	Apache Software Foundation
   		    #end
                       </em></font></div>
  -                </td></tr>
  -            </table>
  + ##               </td></tr>
  + ##           </table>
              <!-- END main table --> 
  +
  +           </div>
  +
  +           <!-- LEFT SIDE NAVIGATION -->
  +           #makeNavigationBar()
  +
           </body>
       </html>
   #end