Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 381378 Details for
Bug 515696
[PATCH] Use Tyrian layout
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0004-Improve-navigation-a-bit.patch
0004-Improve-navigation-a-bit.patch (text/plain), 4.66 KB, created by
Markus Meier
on 2014-07-22 19:30:14 UTC
(
hide
)
Description:
0004-Improve-navigation-a-bit.patch
Filename:
MIME Type:
Creator:
Markus Meier
Created:
2014-07-22 19:30:14 UTC
Size:
4.66 KB
patch
obsolete
>From c67c07a3f3431658ce64aa870485e8b8b0ebc0cb Mon Sep 17 00:00:00 2001 >From: Markus Meier <maekke@gentoo.org> >Date: Tue, 22 Jul 2014 21:22:54 +0200 >Subject: [PATCH 4/4] Improve navigation a bit > >- Add dropdown with available child pages >- Use glyphs from bootstrap instead of pure html arrows >- Drop parent page menu entry since it's available via breadcrumb >--- > devbook.xsl | 21 ++++++++++++++------- > 1 file changed, 14 insertions(+), 7 deletions(-) > >diff --git a/devbook.xsl b/devbook.xsl >index 1d72520..c9fb066 100644 >--- a/devbook.xsl >+++ b/devbook.xsl >@@ -335,6 +335,7 @@ > <!-- TOC Tree --> > <xsl:template match="contentsTree" name="contentsTree"> > <xsl:param name="depth" select="0"/> >+ <xsl:param name="ulclass"/> > <xsl:param name="maxdepth"> > <xsl:choose> > <xsl:when test="@maxdepth"><xsl:value-of select="@maxdepth"/></xsl:when> >@@ -376,7 +377,7 @@ > </xsl:for-each> > </xsl:when> > <xsl:otherwise> >- <ul> >+ <ul class="{$ulclass}"> > <xsl:for-each select="document($doc_self)/guide/include"> > <xsl:variable name="extraction_counter_node"> > <xsl:call-template name="contentsTree"> >@@ -484,8 +485,14 @@ > </div> > <div class="collapse navbar-collapse navbar-main-collapse"> > <ul class="nav navbar-nav"> >+ <li class="dropdown"> >+ <a href="#" class="dropdown-toggle" data-toggle="dropdown"><xsl:value-of select="/guide/chapter[1]/title"/> <span class="caret"></span></a> >+ <xsl:call-template name="contentsTree"> >+ <xsl:with-param name="maxdepth" select="1"/> >+ <xsl:with-param name="ulclass">dropdown-menu</xsl:with-param> >+ </xsl:call-template> >+ </li> > <li><xsl:call-template name="findPrevious"/></li> >- <li><xsl:call-template name="findParent"/></li> > <li><xsl:call-template name="findNext"/></li> > </ul> > </div> >@@ -559,7 +566,7 @@ > --> > <xsl:when test="count(/guide/include) > 0"> > <xsl:variable name="doc" select="/guide/include[1]/@href"/> >- <a href="{concat($doc, 'index.html')}"><xsl:value-of select="document(concat(/guide/@self, $doc, 'text.xml'))/guide/chapter[1]/title"/> →</a> >+ <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> > </xsl:when> > <xsl:otherwise> > <!-- This document's path --> >@@ -592,7 +599,7 @@ > <xsl:with-param name="append">../</xsl:with-param> > </xsl:call-template> > </xsl:variable> >- <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"/> →</a> >+ <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> > </xsl:when> > <xsl:otherwise> > <!-- We need to recurse downwards; so we need to strip off a directory element off our absolute path to feed >@@ -639,7 +646,7 @@ > * Fully recurse up the node to get the last extremity > * Otherwise list the parent --> > <xsl:when test="/guide/@root"> >- <a href="#">← <xsl:value-of select="/guide/chapter[1]/title"/></a> >+ <a href="#"><span class="glyphicon glyphicon-arrow-left"/> <xsl:value-of select="/guide/chapter[1]/title"/></a> > </xsl:when> > <xsl:otherwise> > <!-- This document's path --> >@@ -662,10 +669,10 @@ > </xsl:call-template> > </xsl:variable> > <!-- Make a relative <a> link; we need an absolute reference for the XSLT processor though... --> >- <a href="{concat('../', substring-before($myItem_path, 'text.xml'), 'index.html')}">← <xsl:value-of select="document(concat($parentItem_path, $myItem_path))/guide/chapter[1]/title"/></a> >+ <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> > </xsl:when> > <xsl:otherwise> >- <a href="../index.html">← <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a> >+ <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> > </xsl:otherwise> > </xsl:choose> > </xsl:otherwise> >-- >1.8.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 515696
:
379944
|
379946
|
379968
|
381376
| 381378 |
381380
|
381382
|
381450
|
381452
|
381454
|
381456
|
381594
|
381596
|
381598
|
381600
|
383528
|
383530
|
383532
|
383534
|
389002
|
389120
|
389264