[Qa-jenkins-scm] [jenkins.debian.net] 01/03: package html: remove unneeded <span> in suite list

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 3eb28e8213349432fac84de591092763c0a66766
Author: HW42 <hw42 at ipsumj.de>
Date:   Sun Aug 30 02:12:10 2015 +0200

    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>
---
 bin/reproducible_html_packages.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index b44128b..b2073de 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))

-- 
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