From 91f45a9c749e10cd3c9eac6062a89072721ecbeb Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Wed, 18 May 2016 18:25:32 +0200
Subject: reproducible debian: add icons to currently scheduled view
---
bin/reproducible_html_live_status.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
(limited to 'bin')
diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py
index 78187be5..cea570d5 100755
--- a/bin/reproducible_html_live_status.py
+++ b/bin/reproducible_html_live_status.py
@@ -12,6 +12,14 @@ from reproducible_common import *
from reproducible_html_indexes import build_leading_text_section
import glob
+def convert_into_status_html(status):
+ if status != 'None':
+ status, icon, spokenstatus = get_status_icon(status)
+ return ' ' + status
+ else:
+ return ''
+
+
def generate_schedule(arch):
""" the schedule pages are very different than others index pages """
log.info('Building the schedule index page for ' + arch + '...')
@@ -39,7 +47,7 @@ def generate_schedule(arch):
html += tab + ' | ' + row[0] + ' | '
html += '' + row[1] + ' | ' + row[2] + ' | '
html += link_package(pkg, row[1], row[2], bugs)
- html += ' | '+str(row[4])+' | '+duration+' | ' + avg_duration + ' |
\n'
+ html += ''+convert_into_status_html(str(row[4]))+' | '+duration+' | ' + avg_duration + ' | \n'
html += '
\n'
destfile = BASE + '/index_' + arch + '_scheduled.html'
desturl = REPRODUCIBLE_URL + '/index_' + arch + '_scheduled.html'
@@ -81,7 +89,7 @@ def generate_live_status_table(arch):
html += '' + suite + ' | ' + arch + ' | '
html += '' + link_package(pkg, suite, arch) + ' | '
html += '' + str(row[4]) + ' | ' + str(row[5]) + ' | '
- html += '' + str(row[6]) + ' | ' + duration + ' | ' + avg_duration + ' | '
+ html += '' + convert_into_status_html(str(row[6])) + ' | ' + duration + ' | ' + avg_duration + ' | '
html += '' + str(row[9]) + ' | '
html += '\n'
html += '\n'
--
cgit v1.2.3-70-g09d2