You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by er...@apache.org on 2007/10/02 20:12:19 UTC
svn commit: r581331 - /httpd/site/trunk/xdocs/stylesheets/site.vsl
Author: erikabele
Date: Tue Oct 2 11:12:10 2007
New Revision: 581331
URL: http://svn.apache.org/viewvc?rev=581331&view=rev
Log:
Adjust site.vsl to be able to use date="..." attributes in <section>'s,
useful for displaying dates on news and/or download items.
Modified:
httpd/site/trunk/xdocs/stylesheets/site.vsl
Modified: httpd/site/trunk/xdocs/stylesheets/site.vsl
URL: http://svn.apache.org/viewvc/httpd/site/trunk/xdocs/stylesheets/site.vsl?rev=581331&r1=581330&r2=581331&view=diff
==============================================================================
--- httpd/site/trunk/xdocs/stylesheets/site.vsl (original)
+++ httpd/site/trunk/xdocs/stylesheets/site.vsl Tue Oct 2 11:12:10 2007
@@ -122,14 +122,15 @@
#set ($heading = "")
#end
<table border="0" cellspacing="0" cellpadding="2" width="100%">
+ <tr>
#if ($level == 1)
- <tr><td bgcolor="$bannerbg">
+ <td bgcolor="$bannerbg">
<font color="$bannerfg" face="arial,helvetica,sanserif">
#elseif ($level == 2)
- <tr><td bgcolor="$subbannerbg">
+ <td bgcolor="$subbannerbg">
<font color="$subbannerfg" face="arial,helvetica,sanserif">
#else
- <tr><td bgcolor="$bodybg">
+ <td bgcolor="$bodybg">
<font color="$bodyfg" face="arial,helvetica,sanserif">
#end
#if ($section.getAttributeValue("id"))
@@ -138,8 +139,27 @@
<strong>$heading</strong>
#end
</font>
- </td></tr>
+ </td>
+#if ($section.getAttributeValue("date"))
+#if ($level == 1)
+ <td bgcolor="$bannerbg" align="right">
+ <font color="$bannerfg" face="arial,helvetica,sanserif">
+#elseif ($level == 2)
+ <td bgcolor="$subbannerbg" align="right">
+ <font color="$subbannerfg" face="arial,helvetica,sanserif">
+#else
+ <td bgcolor="$bodybg" align="right">
+ <font color="$bodyfg" face="arial,helvetica,sanserif">
+#end
+ <strong>$section.getAttributeValue("date")</strong>
+ </font>
+ </td>
+ </tr>
+ <tr><td colspan="2">
+#else
+ </tr>
<tr><td>
+#end
<blockquote>
## First, walk the tree and relativise any absolute path URI references
##foreach ( $tw in $treeWalk.allElements($section) )