[Qa-jenkins-scm] [jenkins.debian.net] 01/01: b/reproducible_html_packages: Drop space between image and text link

Holger Levsen holger at moszumanska.debian.org
Thu Aug 27 07:35:52 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 598ecd4864e40d7be41e8adc823b46cdc4fe07c6
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Aug 27 00:57:30 2015 +0200

    b/reproducible_html_packages: Drop space between image and text link
    
    As it appears with an annoying spurious underline when you hover your mouse
    over it..
---
 bin/reproducible_html_packages.py | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index c42d7c4..e71bf5a 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -73,14 +73,18 @@ def sizeof_fmt(num):
 
 
 def gen_status_link_icon(status, icon, suite, arch):
-    html = ''
-    if status != 'untested':
-        html += tab*6 + '<a href="/{suite}/{arch}/index_{status}.html"' + \
-                ' target="_parent" title="{status}">\n'
-    html += tab*9 + '<img src="/static/{icon}" alt="{status}" />\n'
-    html += tab*9 + ' {status}\n'
-    if status != 'untested':
-        html += tab*8 + '</a>\n'
+    html = """
+        <a href="/{suite}/{arch}/index_{status}.html" target="_parent" title="{status}">
+            <img src="/static/{icon}" alt="{status}"></a>
+
+        <a href="/{suite}/{arch}/index_{status}.html" target="_parent" title="{status}">
+            {status}</a>
+    """
+
+    # There are no indices for untested packages
+    if status == 'untested':
+        html = '<img src="/static/{icon}" alt="{status}"> {status}'
+
     return html.format(status=status, icon=icon, suite=suite, arch=arch)
 
 

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