summaryrefslogtreecommitdiffstats
path: root/userContent/reproducible
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-07-25 18:06:00 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-28 14:06:24 -0400
commit1b4dc1b3191e3623a0eeb7cacef80be1ab71d0a2 (patch)
tree1311be767dc70e865b0d126425e0371d28e5ed5b /userContent/reproducible
parent065c7381d97e87cd2d2a799093023e120b1cad0c (diff)
downloadjenkins.debian.net-1b4dc1b3191e3623a0eeb7cacef80be1ab71d0a2.tar.xz
reproducible debian: show the "show all" button when summary tag supported
The "summary" tag is presentally not supported in firefox... but will be with the release of firefox version 48 in August 2016! In the meantime, this commit hides the "see all package sets in suite/arch" button on the package set pages used to expand all the summary tags for firefox. Once Firefox 48 is released, this commit should be reverted. Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'userContent/reproducible')
-rw-r--r--userContent/reproducible/static/pkgset.js9
-rw-r--r--userContent/reproducible/static/style.css4
2 files changed, 13 insertions, 0 deletions
diff --git a/userContent/reproducible/static/pkgset.js b/userContent/reproducible/static/pkgset.js
new file mode 100644
index 00000000..530679a3
--- /dev/null
+++ b/userContent/reproducible/static/pkgset.js
@@ -0,0 +1,9 @@
+window.onload = function () {
+ var userAgent = navigator.userAgent.toLowerCase();
+ var version = /firefox\/(\d+)/.exec(userAgent);
+ if (!version || (version.length === 2 && version[1] > 48)) {
+ // Reveal the "expand-all-pkgset" button when not in firefox (where
+ // summary tags are not supported)
+ document.getElementById("expand-all-pkgsets").style.display='inline';
+ }
+}
diff --git a/userContent/reproducible/static/style.css b/userContent/reproducible/static/style.css
index bdc0e755..5ffd490f 100644
--- a/userContent/reproducible/static/style.css
+++ b/userContent/reproducible/static/style.css
@@ -181,6 +181,10 @@ ul li {
font-weight: bold;
}
+#expand-all-pkgsets {
+ display: none;
+}
+
h1 {
font-size : 250%;
padding: 0;