diff options
author | HW42 <hw42@ipsumj.de> | 2015-08-30 02:17:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-30 13:34:04 +0200 |
commit | 2201dd7a8ae1d6ec8037fffccd3c8fe3ed589629 (patch) | |
tree | 13c425e916e911778cc6fb31e34715949052fb20 /bin | |
parent | 3eb28e8213349432fac84de591092763c0a66766 (diff) | |
download | jenkins.debian.net-2201dd7a8ae1d6ec8037fffccd3c8fe3ed589629.tar.xz |
package html: make it more clear which suite is currently shown
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_packages.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index b2073dea..da63a875 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: |