summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHW42 <hw42@ipsumj.de>2015-08-30 02:12:10 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 13:33:32 +0200
commit3eb28e8213349432fac84de591092763c0a66766 (patch)
treed96f79a73f3867e08772fd0d4b97a4d1bc739ace /bin
parent9005ffed5d8236d5102d1f2b9f4b401e66981b2e (diff)
downloadjenkins.debian.net-3eb28e8213349432fac84de591092763c0a66766.tar.xz
package html: remove unneeded <span> in suite list
This makes formating of the <li>s easier. In additions this fix the wrongly orderder </li></span>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_packages.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index b44128b0..b2073dea 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -182,7 +182,8 @@ def gen_suites_links(package, current_suite, current_arch):
if not status: # The package is not available in that suite/arch
continue
version = package.get_tested_version(s, a)
- html += '<li><span class="suite">\n' + tab
+ li_classes = ['suite']
+ html += '<li class="' + ' '.join(li_classes) + '">\n' + tab
if status != 'untested':
prefix = '<a href="/{}/{}/index_{}.html">'.format(s, a, status)
suffix = '</a>\n'
@@ -192,9 +193,9 @@ def gen_suites_links(package, current_suite, current_arch):
icon = prefix + '<img src="/static/{icon}" alt="{status}" title="{status}"/>' + suffix
html += icon.format(icon=join_status_icon(status)[1], status=status)
html += (tab*2 + ' <a href="{}/{}/{}/{}.html" target="_parent"' + \
- ' title="{}: {}">{}</a>: {}</li>\n').format(RB_PKG_URI,
+ ' title="{}: {}">{}</a>: {}\n').format(RB_PKG_URI,
s, a, package.name, status, version, s, version)
- html += '</span>\n'
+ html += '</li>\n'
html += tab + '</ul></li>'
html += '</ul>\n'
return tab*5 + (tab*7).join(html.splitlines(True))