Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 515696 | Differences between
and this patch

Collapse All | Expand All

(-)a/devbook.xsl (-8 / +14 lines)
Lines 335-340 Link Here
335
  <!-- TOC Tree -->
335
  <!-- TOC Tree -->
336
  <xsl:template match="contentsTree" name="contentsTree">
336
  <xsl:template match="contentsTree" name="contentsTree">
337
    <xsl:param name="depth" select="0"/>
337
    <xsl:param name="depth" select="0"/>
338
    <xsl:param name="ulclass"/>
338
    <xsl:param name="maxdepth">
339
    <xsl:param name="maxdepth">
339
      <xsl:choose>
340
      <xsl:choose>
340
	<xsl:when test="@maxdepth"><xsl:value-of select="@maxdepth"/></xsl:when>
341
	<xsl:when test="@maxdepth"><xsl:value-of select="@maxdepth"/></xsl:when>
Lines 376-382 Link Here
376
	</xsl:for-each>
377
	</xsl:for-each>
377
      </xsl:when>
378
      </xsl:when>
378
      <xsl:otherwise>
379
      <xsl:otherwise>
379
	<ul>
380
	<ul class="{$ulclass}">
380
	  <xsl:for-each select="document($doc_self)/guide/include">
381
	  <xsl:for-each select="document($doc_self)/guide/include">
381
	    <xsl:variable name="extraction_counter_node">
382
	    <xsl:variable name="extraction_counter_node">
382
	      <xsl:call-template name="contentsTree">
383
	      <xsl:call-template name="contentsTree">
Lines 484-491 Link Here
484
              </div>
485
              </div>
485
              <div class="collapse navbar-collapse navbar-main-collapse">
486
              <div class="collapse navbar-collapse navbar-main-collapse">
486
                <ul class="nav navbar-nav">
487
                <ul class="nav navbar-nav">
488
                  <li class="dropdown">
489
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><xsl:value-of select="/guide/chapter[1]/title"/> <span class="caret"></span></a>
490
                    <xsl:call-template name="contentsTree">
491
                      <xsl:with-param name="maxdepth" select="1"/>
492
                      <xsl:with-param name="ulclass">dropdown-menu</xsl:with-param>
493
                    </xsl:call-template>
494
                  </li>
487
                  <li><xsl:call-template name="findPrevious"/></li>
495
                  <li><xsl:call-template name="findPrevious"/></li>
488
                  <li><xsl:call-template name="findParent"/></li>
489
                  <li><xsl:call-template name="findNext"/></li>
496
                  <li><xsl:call-template name="findNext"/></li>
490
                </ul>
497
                </ul>
491
              </div>
498
              </div>
Lines 559-565 Link Here
559
      -->
566
      -->
560
      <xsl:when test="count(/guide/include) &gt; 0">
567
      <xsl:when test="count(/guide/include) &gt; 0">
561
	<xsl:variable name="doc" select="/guide/include[1]/@href"/>
568
	<xsl:variable name="doc" select="/guide/include[1]/@href"/>
562
	<a href="{concat($doc, 'index.html')}"><xsl:value-of select="document(concat(/guide/@self, $doc, 'text.xml'))/guide/chapter[1]/title"/> &#x2192;</a>
569
	<a href="{concat($doc, 'index.html')}"><xsl:value-of select="document(concat(/guide/@self, $doc, 'text.xml'))/guide/chapter[1]/title"/> <span class="glyphicon glyphicon-arrow-right"/></a>
563
      </xsl:when>
570
      </xsl:when>
564
      <xsl:otherwise>
571
      <xsl:otherwise>
565
	<!-- This document's path -->
572
	<!-- This document's path -->
Lines 592-598 Link Here
592
                <xsl:with-param name="append">../</xsl:with-param>
599
                <xsl:with-param name="append">../</xsl:with-param>
593
	      </xsl:call-template>
600
	      </xsl:call-template>
594
	    </xsl:variable>
601
	    </xsl:variable>
595
	    <a href="{concat($relative_path_depth_recursion, $relative_path, 'index.html')}"><xsl:value-of select="document(concat($parentItem_actual, 'text.xml'))/guide/chapter[1]/title"/> &#x2192;</a>
602
	    <a href="{concat($relative_path_depth_recursion, $relative_path, 'index.html')}"><xsl:value-of select="document(concat($parentItem_actual, 'text.xml'))/guide/chapter[1]/title"/> <span class="glyphicon glyphicon-arrow-right"/></a>
596
	  </xsl:when>
603
	  </xsl:when>
597
	  <xsl:otherwise>
604
	  <xsl:otherwise>
598
	    <!-- We need to recurse downwards; so we need to strip off a directory element off our absolute path to feed
605
	    <!-- We need to recurse downwards; so we need to strip off a directory element off our absolute path to feed
Lines 639-645 Link Here
639
	       * Fully recurse up the node to get the last extremity
646
	       * Fully recurse up the node to get the last extremity
640
	     * Otherwise list the parent -->
647
	     * Otherwise list the parent -->
641
      <xsl:when test="/guide/@root">
648
      <xsl:when test="/guide/@root">
642
	<a href="#">&#x2190; <xsl:value-of select="/guide/chapter[1]/title"/></a>
649
	<a href="#"><span class="glyphicon glyphicon-arrow-left"/> <xsl:value-of select="/guide/chapter[1]/title"/></a>
643
      </xsl:when>
650
      </xsl:when>
644
      <xsl:otherwise>
651
      <xsl:otherwise>
645
	<!-- This document's path -->
652
	<!-- This document's path -->
Lines 662-671 Link Here
662
	    </xsl:call-template>
669
	    </xsl:call-template>
663
	    </xsl:variable>
670
	    </xsl:variable>
664
	    <!-- Make a relative <a> link; we need an absolute reference for the XSLT processor though... -->
671
	    <!-- Make a relative <a> link; we need an absolute reference for the XSLT processor though... -->
665
	    <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 'index.html')}">&#x2190; <xsl:value-of select="document(concat($parentItem_path, $myItem_path))/guide/chapter[1]/title"/></a>
672
	    <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 'index.html')}"><span class="glyphicon glyphicon-arrow-left"/> <xsl:value-of select="document(concat($parentItem_path, $myItem_path))/guide/chapter[1]/title"/></a>
666
	  </xsl:when>
673
	  </xsl:when>
667
	  <xsl:otherwise>
674
	  <xsl:otherwise>
668
	    <a href="../index.html">&#x2190; <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a>
675
	    <a href="../index.html"><span class="glyphicon glyphicon-arrow-left"/> <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a>
669
	  </xsl:otherwise>
676
	  </xsl:otherwise>
670
	</xsl:choose>
677
	</xsl:choose>
671
      </xsl:otherwise>
678
      </xsl:otherwise>
672
- 

Return to bug 515696