diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-05-18 23:04:49 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-05-18 23:04:49 +0200 |
commit | ec7d8f8d5ea8a2690cdd8251943cd5e1372682e0 (patch) | |
tree | 8c0f51f25e937682e4c6d765e7b4b062500a5134 /bin/reproducible_html_live_status.py | |
parent | 91f45a9c749e10cd3c9eac6062a89072721ecbeb (diff) | |
download | jenkins.debian.net-ec7d8f8d5ea8a2690cdd8251943cd5e1372682e0.tar.xz |
reproducible debian: right align table cells by default, provide css classes for left and center alignment
Diffstat (limited to 'bin/reproducible_html_live_status.py')
-rwxr-xr-x | bin/reproducible_html_live_status.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py index cea570d5..07224d95 100755 --- a/bin/reproducible_html_live_status.py +++ b/bin/reproducible_html_live_status.py @@ -15,7 +15,7 @@ import glob def convert_into_status_html(status): if status != 'None': status, icon, spokenstatus = get_status_icon(status) - return '<img src="/static/' + icon +'" alt="' + status + '" title="' + status + '"/> ' + status + return status + ' <img src="/static/' + icon +'" alt="' + status + '" title="' + status + '"/>' else: return '' @@ -36,8 +36,8 @@ def generate_schedule(arch): html += build_leading_text_section({'text': text}, rows, defaultsuite, arch) html += generate_live_status_table(arch) html += '<p><table class="scheduled">\n' + tab - html += '<tr><th>#</th><th>scheduled at</th><th>suite</th>' - html += '<th>arch</th><th>source package</th><th>previous build status</th><th>previous build duration</th><th>average build duration</th></tr>\n' + html += '<tr><th class="center">#</th><th class="center">scheduled at</th><th class="center">suite</th>' + html += '<th class="center">arch</th><th class="center">source package</th><th class="center">previous build status</th><th class="center">previous build duration</th><th class="center">average build duration</th></tr>n' bugs = get_bugs() for row in rows: # 0: date_scheduled, 1: suite, 2: arch, 3: pkg name 4: previous status 5: previous build duration 6. avg build duration @@ -66,10 +66,10 @@ def generate_live_status_table(arch): html = '' rows = query_db(query.format(arch=arch)) html += '<p><table class="scheduled">\n' + tab - html += '<tr><th>#</th><th>src pkg id</th><th>suite</th><th>arch</th>' - html += '<th>source package</th><th>version</th></th>' - html += '<th>build started</th><th>previous build status</th>' - html += '<th>previous build duration</th><th>average build duration</th><th>builder job</th>' + html += '<tr><th class="center">#</th><th class="center">src pkg id</th><th class="center">suite</th><th class="center">arch</th>' + html += '<th class=\"center\">source package</th><th class=\"center\">version</th></th>' + html += '<th class=\"center\">build started</th><th class=\"center\">previous build status</th>' + html += '<th class=\"center\">previous build duration</th><th class=\"center\">average build duration</th><th class=\"center\">builder job</th>' html += '</tr>\n' counter = 0 # the path should probably not be hard coded here… |