summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-05-17 14:03:03 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-17 14:03:03 +0200
commit9d05eaaf17ada447446ad335e1e7d05bf13560de (patch)
tree2a7235de5445c40f9d1fb17f4bad2efe69736d91
parent8761b35ea6a1bb033ea915188f6310334d35038a (diff)
downloadjenkins.debian.net-9d05eaaf17ada447446ad335e1e7d05bf13560de.tar.xz
reproducible debian: add icons to package test history pages
-rwxr-xr-xbin/reproducible_html_packages.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index fe64450d..ed58b055 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -211,6 +211,10 @@ def gen_history_page(package):
html += '<th>{}</th>'.format(i)
html += '\n{tab}</tr>'.format(tab=tab)
for record in package.history:
+ # add icon to result
+ status, icon, spokenstatus = get_status_icon(record['result'])
+ result_html = '<img src="/static/{icon}" alt="{spokenstatus}" title="{spokenstatus}"/> ' + spokenstatus
+ record['result'] = result_html.format(icon=icon, spokenstatus=spokenstatus)
# human formatting of build duration
record['build duration'] = convert_into_hms_string(
int(record['build duration']))