summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_html_packages.py20
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)