summaryrefslogtreecommitdiff
path: root/gentoobrowse/xslt/base.xslt
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 21:46:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 21:46:28 +0000
commit6ad9b2dfa65d9564dc3912b7f4383343a1d2c487 (patch)
tree6d69b258e82ea941d4af2ddd2f4478650311530b /gentoobrowse/xslt/base.xslt
parentSet first input focus on popup (diff)
downloadgentoobrowse-6ad9b2dfa65d9564dc3912b7f4383343a1d2c487.tar.bz2
gentoobrowse-6ad9b2dfa65d9564dc3912b7f4383343a1d2c487.tar.xz
gentoobrowse-6ad9b2dfa65d9564dc3912b7f4383343a1d2c487.zip
CDN with the latest v2.x bootstrap CSS and JSgentoobrowse-2.0.0
Diffstat (limited to 'gentoobrowse/xslt/base.xslt')
-rw-r--r--gentoobrowse/xslt/base.xslt11
1 files changed, 6 insertions, 5 deletions
diff --git a/gentoobrowse/xslt/base.xslt b/gentoobrowse/xslt/base.xslt
index f5ec3db..d992210 100644
--- a/gentoobrowse/xslt/base.xslt
+++ b/gentoobrowse/xslt/base.xslt
@@ -54,6 +54,7 @@
</xsl:template>
<xsl:template match="/*">
+ <xsl:param name="tbscdn" select="'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2'"/>
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;&#10;</xsl:text>
<html lang="en">
<head>
@@ -62,8 +63,8 @@
<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="{$tbscdn}/css/bootstrap.min.css" rel="stylesheet" media="screen" />
+ <link href="{$tbscdn}/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" />
<link href="/css/general.css" rel="stylesheet" media="screen" />
<xsl:call-template name="head" />
</head>
@@ -85,9 +86,9 @@
<li><a accesskey="b" href="/packages">Browse</a></li>
<li><a accesskey="o" href="/packages/popular">Popular</a></li>
<li><a accesskey="u" href="/use">Use</a></li>
- <li><a accesskey="s" onclick="showPopup('#search')" rel="nofollow">Search</a></li>
+ <li><a accesskey="s" href="#search" data-keyboard="true" data-toggle="modal" rel="nofollow">Search</a></li>
<xsl:if test="not(user)">
- <li><a accesskey="l" onclick="showPopup('#login')" rel="nofollow">Login/Sign up</a></li>
+ <li><a accesskey="l" href="#login" data-keyboard="true" data-toggle="modal" rel="nofollow">Login/Sign up</a></li>
</xsl:if>
<xsl:if test="user">
<li>
@@ -168,7 +169,7 @@
</xsl:call-template>
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
- <script src="/js/bootstrap.min.js"></script>
+ <script src="{$tbscdn}/js/bootstrap.min.js"></script>
<script src="/js/js.js"></script>
<script src="/js/googletracking.js" />
</body>