www/105602: [Patch] Add support for sidenav in oldnewsflash and
oldpress
Rudolf Cejka
cejkar at fit.vutbr.cz
Thu Nov 16 01:30:09 PST 2006
>Number: 105602
>Category: www
>Synopsis: [Patch] Add support for sidenav in oldnewsflash and oldpress
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 16 09:30:07 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Rudolf Cejka
>Release: FreeBSD 6.1-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:
There is missing sidenav (vertical navigation box on the left side of
the pages) in old newsflash pages and old press pages. The following
2 patches applied in www/share/sgml solve the problem and add sidenav
to them.
All parts are copied from templates.press.xsl, where is similar not
so good indentation - it can be fixed later, but for now the patches
are as minimal as possible.
--- templates.oldnewsflash.xsl.orig Thu Nov 16 10:01:25 2006
+++ templates.oldnewsflash.xsl Thu Nov 16 10:07:12 2006
@@ -33,8 +33,20 @@
<body>
+ <div id="CONTAINERWRAP">
+ <div id="CONTAINER">
+
&header2;
+ <div id="CONTENT">
+ <div id="SIDEWRAP">
+ &nav;
+ </div> <!-- SIDEWRAP -->
+
+ <div id="CONTENTWRAP">
+
+ &header3;
+
<!-- Notice how entity references in SGML become variable references
in the stylesheet, and that the syntax for referring to variables
inside an attribute is "{$variable}".
@@ -52,10 +64,19 @@
<xsl:apply-templates select="descendant::month"/>
<a href="news.html">News Home</a>
+ </div> <!-- CONTENTWRAP -->
+ <br class="clearboth" />
+
+ </div> <!-- CONTENT -->
+
<div id="FOOTER">
©right;<br />
&date;
</div> <!-- FOOTER -->
+
+ </div> <!-- CONTAINER -->
+ </div> <!-- CONTAINERWRAP -->
+
</body>
</html>
</xsl:template>
--- templates.oldpress.xsl.orig Thu Nov 16 10:01:18 2006
+++ templates.oldpress.xsl Thu Nov 16 10:05:07 2006
@@ -30,8 +30,20 @@
<body>
+ <div id="CONTAINERWRAP">
+ <div id="CONTAINER">
+
&header2;
+ <div id="CONTENT">
+ <div id="SIDEWRAP">
+ &nav;
+ </div> <!-- SIDEWRAP -->
+
+ <div id="CONTENTWRAP">
+
+ &header3;
+
<xsl:apply-templates select="//month"/>
<p>Other press publications:
@@ -44,10 +56,19 @@
<a href="press.html">Press Home</a>,
<a href="news.html">News Home</a>
+ </div> <!-- CONTENTWRAP -->
+ <br class="clearboth" />
+
+ </div> <!-- CONTENT -->
+
<div id="FOOTER">
©right;<br />
&date;
</div> <!-- FOOTER -->
+
+ </div> <!-- CONTAINER -->
+ </div> <!-- CONTAINERWRAP -->
+
</body>
</html>
</xsl:template>
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list