diff options
author | Chris Lamb <lamby@debian.org> | 2015-08-27 00:57:30 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-27 09:35:28 +0200 |
commit | 598ecd4864e40d7be41e8adc823b46cdc4fe07c6 (patch) | |
tree | a65b62840144bd4cd09d133842f9bdc10a1d3ec7 /bin/reproducible_html_packages.py | |
parent | 9adfc1d04451c9054586a56c2f670eec4417bea3 (diff) | |
download | jenkins.debian.net-598ecd4864e40d7be41e8adc823b46cdc4fe07c6.tar.xz |
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..
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-x | bin/reproducible_html_packages.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index c42d7c4c..e71bf5a8 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) |