Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2006 10:21:31 +0100 (CET)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   www/105602: [Patch] Add support for sidenav in oldnewsflash and oldpress
Message-ID:  <200611160921.kAG9LVGm099778@kazi.fit.vutbr.cz>
Resent-Message-ID: <200611160930.kAG9U726023181@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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">
                &copyright;<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">
                &copyright;<br />
                &date;
             </div> <!-- FOOTER -->
+
+        </div> <!-- CONTAINER -->
+   </div> <!-- CONTAINERWRAP -->
+
       </body>
     </html>
   </xsl:template>
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611160921.kAG9LVGm099778>