[Qa-jenkins-scm] [jenkins.debian.net] 02/03: package html: make it more clear which suite is currently shown

Holger Levsen holger at moszumanska.debian.org
Sun Aug 30 11:35:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 2201dd7a8ae1d6ec8037fffccd3c8fe3ed589629
Author: HW42 <hw42 at ipsumj.de>
Date:   Sun Aug 30 02:17:36 2015 +0200

    package html: make it more clear which suite is currently shown
---
 bin/reproducible_html_packages.py         | 6 +++---
 userContent/reproducible/static/style.css | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index b2073de..da63a87 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -174,8 +174,6 @@ def gen_suites_links(package, current_suite, current_arch):
         html += tab + '<li>{}\n'.format(a)
         html += tab + '<ul class="children">\n'
         for s in SUITES:
-            if s == current_suite and a == current_arch:
-                continue
             if a == 'armhf' and s != 'unstable':
                 continue
             status = package.get_status(s, a)
@@ -183,8 +181,10 @@ def gen_suites_links(package, current_suite, current_arch):
                 continue
             version = package.get_tested_version(s, a)
             li_classes = ['suite']
+            if s == current_suite and a == current_arch:
+                li_classes.append('active')
             html += '<li class="' + ' '.join(li_classes) + '">\n' + tab
-            if status != 'untested':
+            if s != current_suite or a != current_arch or status != 'untested':
                 prefix = '<a href="/{}/{}/index_{}.html">'.format(s, a, status)
                 suffix = '</a>\n'
             else:
diff --git a/userContent/reproducible/static/style.css b/userContent/reproducible/static/style.css
index d4708b7..dfeaa07 100644
--- a/userContent/reproducible/static/style.css
+++ b/userContent/reproducible/static/style.css
@@ -104,6 +104,10 @@ ul.menu {
 	clear: left;
 }
 
+.suite.active {
+	background-color: #bfeaff;
+}
+
 ul.reproducible-links {
 	margin-top: 1em;
 	border-top: 1px solid #eee;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list