Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 381376 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]
0003-Show-current-page-location-under-the-menu.patch
0003-Show-current-page-location-under-the-menu.patch (text/plain), 2.12 KB, created by
Markus Meier
on 2014-07-22 19:29:28 UTC
(
hide
)
Description:
0003-Show-current-page-location-under-the-menu.patch
Filename:
MIME Type:
Creator:
Markus Meier
Created:
2014-07-22 19:29:28 UTC
Size:
2.12 KB
patch
obsolete
>From da6d9033572e33673be0eb14bbb39687d6fb50ca Mon Sep 17 00:00:00 2001 >From: Markus Meier <maekke@gentoo.org> >Date: Tue, 22 Jul 2014 20:58:16 +0200 >Subject: [PATCH 3/4] Show current page location under the menu > >- Use the breadcrump component of bootstrap >- Add printParentDocs template to generate the entries recursively >--- > devbook.xsl | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > >diff --git a/devbook.xsl b/devbook.xsl >index 98206e8..1d72520 100644 >--- a/devbook.xsl >+++ b/devbook.xsl >@@ -494,6 +494,18 @@ > </nav> > </header> > <div class="container"> >+ <div class="row"> >+ <div class="col-md010"> >+ <ol class="breadcrumb"> >+ <xsl:call-template name="printParentDocs"> >+ <xsl:with-param name="path" select="/guide/@self"/> >+ <xsl:with-param name="depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , ''))"/> >+ </xsl:call-template> >+ </ol> >+ </div> >+ </div> >+ </div> >+ <div class="container"> > <xsl:apply-templates/> > </div> > <footer> >@@ -660,6 +672,26 @@ > </xsl:choose> > </xsl:template> > >+ <xsl:template name="printParentDocs"> >+ <xsl:param name="depth"/> >+ <xsl:choose> >+ <xsl:when test="$depth > 0"> >+ <xsl:variable name="relative_path_depth_recursion"> >+ <xsl:call-template name="str:repeatString"> >+ <xsl:with-param name="count" select="$depth"/> >+ <xsl:with-param name="append">../</xsl:with-param> >+ </xsl:call-template> >+ </xsl:variable> >+ >+ <li><a href="{$relative_path_depth_recursion}index.html"><xsl:value-of select="document(concat(/guide/@self, concat($relative_path_depth_recursion, 'text.xml')))/guide/chapter[1]/title"/></a></li> >+ >+ <xsl:call-template name="printParentDocs"> >+ <xsl:with-param name="depth" select="$depth - 1"/> >+ </xsl:call-template> >+ </xsl:when> >+ </xsl:choose> >+ </xsl:template> >+ > <xsl:template name="findParent"> > <xsl:choose> > <xsl:when test="not(/guide/@root)"> >-- >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