Author: xavier
Date: Thu Mar  1 06:05:26 2007
New Revision: 513335

URL: http://svn.apache.org/viewvc?view=rev&rev=513335
Log:
replace top navigation menu by a breadcrumb

Modified:
    incubator/ivy/core/trunk/doc/style/nav.css
    incubator/ivy/core/trunk/doc/template.html
    incubator/ivy/core/trunk/doc/xooki/xooki.js

Modified: incubator/ivy/core/trunk/doc/style/nav.css
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/doc/style/nav.css?view=diff&rev=513335&r1=513334&r2=513335
==============================================================================
--- incubator/ivy/core/trunk/doc/style/nav.css (original)
+++ incubator/ivy/core/trunk/doc/style/nav.css Thu Mar  1 06:05:26 2007
@@ -1,96 +1,10 @@
-#navcontainer {
-       width: inherit;
-       margin: 0 0 0 50px;
-       padding-left: 0;
-       height: 1.20em;
-       z-index: 100;
+#navcontainer .breadCrumb {
+    color: white;
+       margin-left: 20px;
 }
 
-#nav {
-       font: bold 0.75em/100% Trebuchet MS, Arial, Helvetica, sans-serif;
-       float: left;
-       width: inherit;
-       list-style: none;
-       line-height: 1;
-       padding: 0;
-       margin: 0;
-       z-index: 100;
-}
-
-#nav ul {
-       font: normal 100%/140% Trebuchet MS, Arial, Helvetica, sans-serif;
-       position: absolute;
-       left: -999em;
-       height: auto;
-       width: 11.4em;
-       w\idth: 12.0em;
-       list-style: none;
-       margin: 0;
-       padding: 0;
-       z-index: 100;
-}
-
-#nav li {
-       float: left;
-       padding: 0;
-       width: auto;
-       z-index: 100;
-}
 
-#nav ul li {
-       float: left;
-       padding: 0;
-       width: 10em;
-       z-index: 100;
-}
-
-#nav li a {
-       display: block;
-       width: auto;
-       padding: 0.25em 1.0em;
+#navcontainer .breadCrumb a {
+    color: white;
        text-decoration: none;
-}
-
-#nav .title {
-  text-align: center;
-  font-weight: 700;
-       width: 11em;
-       w\idth: 10em;
-       margin: 0;
-       padding: 0.15em 1.0em;
-}
-
-#nav li li a {
-       width: 11em;
-       w\idth: 10em;
-       margin: 0;
-       padding: 0.25em 1.0em;
-}
-
-#nav li ul ul {
-       margin: -1.75em 0 0 11em;
-       z-index: 100;
-}
-
-#nav li:hover ul ul,
-#nav li:hover ul ul ul,
-#nav li.sfhover ul ul,
-#nav li.sfhover ul ul ul {
-       left: -999em;
-       z-index: 100;
-}
-
-#nav li:hover ul,
-#nav li li:hover ul,
-#nav li li li:hover ul,
-#nav li.sfhover ul,
-#nav li li.sfhover ul,
-#nav li li li.sfhover ul {
-       left: auto;
-       z-index: 100;
-}
-
-#nav li:hover,
-#nav li.sfhover {
-       z-index: 100;
 }

Modified: incubator/ivy/core/trunk/doc/template.html
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/doc/template.html?view=diff&rev=513335&r1=513334&r2=513335
==============================================================================
--- incubator/ivy/core/trunk/doc/template.html (original)
+++ incubator/ivy/core/trunk/doc/template.html Thu Mar  1 06:05:26 2007
@@ -30,13 +30,7 @@
                <td>
 
                <div id="navcontainer">
-               <ul id="nav">
-                       <li><a href="index.html">Home</a></li>
-                       <li><a href="download.html">Download</a></li>
-                       <li><a href="doc.html">Documentation</a></li>
-                       <li><a href="doc/tutorial.html">Tutorials</a></li>
-                       <li><a href="get-involved.html">Get Involved</a></li>
-               </ul>
+               ${breadCrumb}
                </div>
                </td>
        </tr>

Modified: incubator/ivy/core/trunk/doc/xooki/xooki.js
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/doc/xooki/xooki.js?view=diff&rev=513335&r1=513334&r2=513335
==============================================================================
--- incubator/ivy/core/trunk/doc/xooki/xooki.js (original)
+++ incubator/ivy/core/trunk/doc/xooki/xooki.js Thu Mar  1 06:05:26 2007
@@ -145,7 +145,7 @@
                                req.open("GET", url, true);
                                    req.onreadystatechange=function() {
                                        if (req.readyState == 4) {
-                                          if (req.status == 200) {
+                                          if (req.status == 200 || req.status 
== 0) {
                                              callback(req.responseText, obj);
                                           }
                                        }
@@ -444,6 +444,19 @@
 
     printerFriendlyLink: function () {
         return '<a href="'+this.printerFriendlyLocation()+'">'+t('Printer 
Friendly')+'</a>';
+    },
+
+    breadCrumb: function () {
+        var breadCrumb = '<span class="breadCrumb">';
+               breadCrumb += (function (page) {
+               var breadCrumb = '<a href="'+pu(page.id)+'">'+page.title+'</a>';
+                       if (page.meta.level >= 1) {
+                               breadCrumb = arguments.callee(page.meta.parent) 
+ " &gt; " + breadCrumb;
+                       }
+               return breadCrumb;
+        })(xooki.page);
+               breadCrumb += '</span>';
+               return breadCrumb;
     }
 };
 
@@ -823,11 +836,11 @@
 
        if (xooki.page == null) {
                xooki.warn(t('page id not found in TOC: ${0}',curPageId));
-       } else {
-               if (typeof xooki.config.title == 'undefined') {
-                       xooki.config.title = xooki.page.title;
-               }               
-       }
+               xooki.page = xooki.toc.children[0];
+       } 
+       if (typeof xooki.config.title == 'undefined') {
+               xooki.config.title = xooki.page.title;
+       }               
        xooki.config.page = xooki.page;
        
     
////////////////////////////////////////////////////////////////////////////


Reply via email to