From 0113ece32d036b2608135e03d13e5431a25eadb2 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 4 Mar 2013 21:16:33 +0000 Subject: Reinstate package herd links and package tracking Tidy up search results page --- gentoobrowse/css/general.css | 8 ++--- gentoobrowse/js/pkgtracking.js | 12 ++++--- gentoobrowse/xslt/package.xslt | 72 +++++++++++++++++------------------------- gentoobrowse/xslt/search.xslt | 69 +++++++++++++++++++++++++--------------- 4 files changed, 85 insertions(+), 76 deletions(-) diff --git a/gentoobrowse/css/general.css b/gentoobrowse/css/general.css index d164659..e15e534 100644 --- a/gentoobrowse/css/general.css +++ b/gentoobrowse/css/general.css @@ -813,7 +813,7 @@ form.bs-docs-example { box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1); } /* Chevrons */ -.bs-docs-sidenav .icon-chevron-right { +.bs-docs-sidenav i { float: right; margin-top: 2px; margin-right: -6px; @@ -822,11 +822,11 @@ form.bs-docs-example { .bs-docs-sidenav > li > a:hover { background-color: #f5f5f5; } -.bs-docs-sidenav a:hover .icon-chevron-right { +.bs-docs-sidenav a:hover i { opacity: .5; } -.bs-docs-sidenav .active .icon-chevron-right, -.bs-docs-sidenav .active a:hover .icon-chevron-right { +.bs-docs-sidenav .active i +.bs-docs-sidenav .active a:hover i { background-image: url(../img/glyphicons-halflings-white.png); opacity: 1; } diff --git a/gentoobrowse/js/pkgtracking.js b/gentoobrowse/js/pkgtracking.js index a8d9f1b..1c171b6 100644 --- a/gentoobrowse/js/pkgtracking.js +++ b/gentoobrowse/js/pkgtracking.js @@ -5,8 +5,7 @@ function track(pid) xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("packageid=" + pid); if (xmlhttp.status == 200) { - document.getElementById("dotrack").style.display = "none"; - document.getElementById("dountrack").style.display = "inline"; + toggleTracking(); } } @@ -17,7 +16,12 @@ function untrack(pid) xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("packageid=" + pid); if (xmlhttp.status == 200) { - document.getElementById("dountrack").style.display = "none"; - document.getElementById("dotrack").style.display = "inline"; + toggleTracking(); } } + +function toggleTracking() +{ + $('#dotrack').toggle(); + $('#dountrack').toggle(); +} diff --git a/gentoobrowse/xslt/package.xslt b/gentoobrowse/xslt/package.xslt index 395c5ca..2dac0a6 100644 --- a/gentoobrowse/xslt/package.xslt +++ b/gentoobrowse/xslt/package.xslt @@ -26,6 +26,12 @@

+ + ( + /herd/ + Other packages in the herd + herd) +

@@ -34,29 +40,43 @@ @@ -71,40 +91,6 @@ - diff --git a/gentoobrowse/xslt/search.xslt b/gentoobrowse/xslt/search.xslt index 5ae949a..644a906 100644 --- a/gentoobrowse/xslt/search.xslt +++ b/gentoobrowse/xslt/search.xslt @@ -9,7 +9,7 @@ -

Search results for ""

+

Search results

packages, bugs @@ -19,37 +19,56 @@

- + + +
- - + + + + + +
+ +

Nothing found matching your search terms.

+
+
-
- - -
+ +
+ + +
+
+ -
- - -

- - http://bugs.gentoo.org/ - - - - : - -

-
-
+ +
+ + +

+ + http://bugs.gentoo.org/ + + + + : + +

+
+
+
-- cgit v1.2.3