Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 379944 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]
0001-use-bootstrap-layout-from-infra-status.g.o.patch
0001-use-bootstrap-layout-from-infra-status.g.o.patch (text/plain), 12.38 KB, created by
Markus Meier
on 2014-06-29 20:05:46 UTC
(
hide
)
Description:
0001-use-bootstrap-layout-from-infra-status.g.o.patch
Filename:
MIME Type:
Creator:
Markus Meier
Created:
2014-06-29 20:05:46 UTC
Size:
12.38 KB
patch
obsolete
>From 6115f4707e2c7b07d418ae2dd3e2673f326c25e5 Mon Sep 17 00:00:00 2001 >From: Markus Meier <maekke@gentoo.org> >Date: Sun, 29 Jun 2014 21:26:13 +0200 >Subject: [PATCH 1/2] use bootstrap layout from infra-status.g.o > >Signed-off-by: Markus Meier <maekke@gentoo.org> >--- > devbook.xsl | 159 ++++++++++++++++++++++++++++++++++++------------------------ > 1 file changed, 95 insertions(+), 64 deletions(-) > >diff --git a/devbook.xsl b/devbook.xsl >index 0548c22..175aa45 100644 >--- a/devbook.xsl >+++ b/devbook.xsl >@@ -419,66 +419,97 @@ > <xsl:template match="/"> > <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> > <head> >- <title>Gentoo Development Guide: <xsl:value-of select="/guide/chapter[1]/title"/></title> >- <xsl:variable name="relative_path_depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , ''))"/> >- <xsl:variable name="relative_path_depth_recursion"> >- <xsl:call-template name="str:repeatString"> >- <xsl:with-param name="count" select="$relative_path_depth"/> >- <xsl:with-param name="append">../</xsl:with-param> >- </xsl:call-template> >- </xsl:variable> >- <link rel="stylesheet" href="{$relative_path_depth_recursion}devmanual.css" type="text/css" /> >+ <title>Gentoo Development Guide: <xsl:value-of select="/guide/chapter[1]/title"/></title> >+ <xsl:variable name="relative_path_depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , ''))"/> >+ <xsl:variable name="relative_path_depth_recursion"> >+ <xsl:call-template name="str:repeatString"> >+ <xsl:with-param name="count" select="$relative_path_depth"/> >+ <xsl:with-param name="append">../</xsl:with-param> >+ </xsl:call-template> >+ </xsl:variable> >+ <link rel="stylesheet" href="{$relative_path_depth_recursion}devmanual.css" type="text/css" /> >+ <meta charset="utf-8" /> >+ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> >+ <meta name="description" content="Gentoo Infrastructure Status provides information on the status of the services the Gentoo Linux distribution offers to its developers and users." /> >+ <link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.css" rel="stylesheet" media="screen" /> >+ <link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/tyrian.min.css" rel="stylesheet" media="screen" /> >+ <link rel="icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon" /> > </head> > <body> >- <div class="main"> >- <h1>Gentoo Development Guide</h1> >- <div class="navtop" style="text-align: center;"> >- <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; >- width: 100%;"> >- >- <col width="33%" /> >- <col width="34%" /> >- <col width="33%" /> >- <tr> >- <td style="text-align: center; border-right: 1px dashed #330066;">← <xsl:call-template name="findPrevious"/></td> >- <td style="text-align: center;">↑ <xsl:call-template name="findParent"/> ↑</td> >- <td style="text-align: center; border-left: 1px dashed #330066;"><xsl:call-template name="findNext"/> →</td> >- </tr> >- </table> >- </div> >- >- <div class="document"> >- <xsl:apply-templates/> >- </div> >- >- <div class="navbottom" style="text-align: center;"> >- <table style="border-top: 1px dashed #330066; margin-left: auto; margin-right: auto; >- width: 100%;"> >- >- <col width="33%" /> >- <col width="34%" /> >- <col width="33%" /> >- <tr> >- <td style="text-align: center; border-right: 1px dashed #330066;">← <xsl:call-template name="findPrevious"/></td> >- <td style="text-align: center;">↑ <xsl:call-template name="findParent"/> ↑</td> >- <td style="text-align: center; border-left: 1px dashed #330066;"><xsl:call-template name="findNext"/> →</td> >- </tr> >- </table> >- </div> >- </div> >- >- <div class="footer"> >- <p> >- <a href="http://validator.w3.org/check/referer"><img src="/icons/icon_mini-xhtml.png" alt="Valid XHTML 1.0" /></a> >- <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/icons/icon_mini-css.png" alt="Valid CSS" /></a> >- <a href="http://www.gentoo.org/"><img src="/icons/icon_mini-gentoo.png" alt="Powered by Gentoo" /></a> >- <a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/icons/icon_mini-creativecommons.png" alt="Creative Commons License" /></a> >- <img src="/icons/icon_mini-xml.png" alt="XML Powered!"/> >- <br /> >- <br /> >- The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >- </p> >+ <header> >+ <div class="site-title"> >+ <div class="container"> >+ <div class="row"> >+ <div class="site-title-buttons"> >+ <div class="btn-group btn-group-sm"> >+ <a href="http://get.gentoo.org/" type="button" class="btn get-gentoo"><span class="fa fa-download"></span> <strong>Get Gentoo!</strong></a> >+ <div class="btn-group btn-group-sm"> >+ <button type="button" class="gentoo-org-sites btn" data-toggle="dropdown"> >+ <span class="glyphicon glyphicon-globe"></span> gentoo.org sites <span class="caret"></span> >+ </button> >+ <ul class="dropdown-menu"> >+ <li><a href="http://www.gentoo.org/" title="Main Gentoo website"><span class="fa fa-home fa-fw"></span> gentoo.org</a></li> >+ <li><a href="http://wiki.gentoo.org/" title="Find and contribute documentation"><span class="fa fa-file-text fa-fw"></span> Wiki</a></li> >+ <li><a href="https://bugs.gentoo.org/" title="Report issues and find common issues"><span class="fa fa-bug fa-fw"></span> Bugs</a></li> >+ <li><a href="http://forums.gentoo.org/" title="Discuss with the community"><span class="fa fa-comments-o fa-fw"></span> Forums</a></li> >+ <li><a href="http://packages.gentoo.org/" title="Find software for your Gentoo"><span class="fa fa-hdd-o fa-fw"></span> Packages</a></li> >+ <li class="divider"></li> >+ <li><a href="http://overlays.gentoo.org/" title="Collaborate on maintaining packages"><span class="fa fa-code-fork fa-fw"></span> Overlays</a></li> >+ <li><a href="http://planet.gentoo.org/" title="Find out what's going on in the developer community"><span class="fa fa-rss fa-fw"></span> Planet</a></li> >+ <li><a href="http://archives.gentoo.org/" title="Read up on past discussions"><span class="fa fa-archive fa-fw"></span> Archives</a></li> >+ <li><a href="http://sources.gentoo.org/" title="Browse our source code"><span class="fa fa-code fa-fw"></span> Sources</a></li> >+ <li class="divider"></li> >+ <li><a href="http://infra-status.gentoo.org/" title="Get updates on the services provided by Gentoo"><span class="fa fa-tasks fa-fw"></span> Infra Status</a></li> >+ </ul> >+ </div> >+ </div> >+ </div> >+ <div class="logo"> >+ <img src="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/site-logo.png" alt="Gentoo Linux Logo"/> >+ <span class="site-label">Gentoo Development Guide</span> >+ </div> >+ </div> >+ </div> >+ </div> >+ <nav class="tyrian-navbar" role="navigation"> >+ <div class="container"> >+ <div class="row"> >+ <div class="navbar-header"> >+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"> >+ <span class="sr-only">Toggle navigation</span> >+ <span class="icon-bar"></span> >+ <span class="icon-bar"></span> >+ <span class="icon-bar"></span> >+ </button> >+ </div> >+ <div class="collapse navbar-collapse navbar-main-collapse"> >+ <ul class="nav navbar-nav"> >+ <li><xsl:call-template name="findPrevious"/></li> >+ <li><xsl:call-template name="findParent"/></li> >+ <li><xsl:call-template name="findNext"/></li> >+ </ul> >+ </div> >+ </div> >+ </div> >+ </nav> >+ </header> >+ <div class="container"> >+ <xsl:apply-templates/> > </div> >+ <footer> >+ <div class="container"> >+ <div class="row"> >+ <div class="col-md-12"> >+ <strong>Copyright 2001-2014 Gentoo Foundation, Inc.</strong><br /> >+ <small> >+ Gentoo is a trademark of the Gentoo Foundation, Inc. >+ The text of this document is distributed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 License</a>. >+ The <a href="#">Gentoo Name and Logo Usage Guidelines</a> apply. >+ </small> >+ </div> >+ </div> >+ </div> >+ </footer> > </body> > </html> > </xsl:template> >@@ -514,7 +545,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"/> →</a> > </xsl:when> > <xsl:otherwise> > <!-- This document's path --> >@@ -547,7 +578,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"/> →</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 >@@ -594,7 +625,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="#">← <xsl:value-of select="/guide/chapter[1]/title"/></a> > </xsl:when> > <xsl:otherwise> > <!-- This document's path --> >@@ -617,10 +648,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')}">← <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">← <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a> > </xsl:otherwise> > </xsl:choose> > </xsl:otherwise> >@@ -630,10 +661,10 @@ > <xsl:template name="findParent"> > <xsl:choose> > <xsl:when test="not(/guide/@root)"> >- <a href="../index.html"><xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/></a> >+ <a href="../index.html">↑ <xsl:value-of select="document(concat(/guide/@self, '../text.xml'))/guide/chapter[1]/title"/> ↑</a> > </xsl:when> > <xsl:otherwise> >- <a href="#"><xsl:value-of select="/guide/chapter[1]/title"/></a> >+ <a href="#">↑ <xsl:value-of select="/guide/chapter[1]/title"/> ↑</a> > </xsl:otherwise> > </xsl:choose> > </xsl:template> >-- >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