diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-03-09 21:09:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-03-09 21:09:57 +0000 |
commit | 0a120a58212291d4b88f2a81c5e353414fd1ba40 (patch) | |
tree | 108051978b781d42cddf6abb839ba8b9c76bb58b /gentoobrowse/xslt/base.xslt | |
parent | Remove couch session config (diff) | |
download | gentoobrowse-0a120a58212291d4b88f2a81c5e353414fd1ba40.tar.bz2 gentoobrowse-0a120a58212291d4b88f2a81c5e353414fd1ba40.tar.xz gentoobrowse-0a120a58212291d4b88f2a81c5e353414fd1ba40.zip |
Some fixes recommended by Googlegentoobrowse-1.0.1
Diffstat (limited to 'gentoobrowse/xslt/base.xslt')
-rw-r--r-- | gentoobrowse/xslt/base.xslt | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gentoobrowse/xslt/base.xslt b/gentoobrowse/xslt/base.xslt index b3f394d..3267f67 100644 --- a/gentoobrowse/xslt/base.xslt +++ b/gentoobrowse/xslt/base.xslt @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" > <xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes" /> @@ -8,13 +9,13 @@ <html lang="en"> <head> <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="shortcut icon" href="/img/glogo-small.png" type="image/png" /> <link rel="start" href="/" /> <link rel="search" href="/search" /> <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen" /> <link href="/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" /> <link href="/css/general.css" rel="stylesheet" media="screen" /> - <script src="/js/googletracking.js" /> <xsl:call-template name="head" /> </head> <body data-spy="scroll" data-target=".bs-docs-sidebar"> @@ -72,6 +73,7 @@ <xsl:value-of select="name" /> </a> </li> + <wbr/> <li class="muted">·</li> </xsl:for-each> </ul> @@ -109,9 +111,10 @@ </div> </form> - <script src="http://code.jquery.com/jquery-latest.js"></script> + <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="/js/bootstrap.min.js"></script> <script src="/js/js.js"></script> + <script src="/js/googletracking.js" /> </body> </html> </xsl:template> @@ -149,4 +152,17 @@ </xsl:if> </p> </xsl:template> + + <xsl:template match="text()" name="split"> + <xsl:param name="pText"/> + <xsl:param name="pBy"/> + <xsl:for-each select="str:tokenize($pText, $pBy)"> + <xsl:if test="position() > 1"> + <xsl:value-of select="$pBy"/> + <wbr/> + </xsl:if> + <xsl:value-of select="."/> + </xsl:for-each> + </xsl:template> + </xsl:stylesheet> |