diff options
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index 0ec40fbf..f86daf05 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -163,6 +163,7 @@ html_head_page = Template((tab*2).join(""" <li><a href="index_dd-list.html">maintainers of unreproducible packages</a></li> <li><a href="/index_pkg_sets.html">package sets stats</a></li> <li><a href="index_suite_stats.html">sid stats</a></li> +$suite_links <li><a href="/index_repo_stats.html">repositories overview</a></li> <li><a href="/reproducible.html">reproducible stats</a></li> </ul> @@ -191,18 +192,23 @@ def print_critical_message(msg): log.critical(msg) print('\n\n\n') -def write_html_page(title, body, destfile, noheader=False, style_note=False, noendpage=False): +def write_html_page(title, body, destfile, suite=None, noheader=False, style_note=False, noendpage=False): now = datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M UTC') html = '' html += html_header.substitute(page_title=title) if not noheader: + suite_links = "" + for i in SUITES: + if i != suite: + suite_links += '<li><a href="' + i +'">suite: ' + i + '</a></li>' html += html_head_page.substitute( page_title=title, count_total=count_total, amount=amount, percent_total=percent_total, count_good=count_good, - percent_good=percent_good) + percent_good=percent_good, + suite_links=suite_links) html += body if style_note: html += html_foot_page_style_note.substitute() |