diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-13 01:55:53 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-16 16:38:49 +0200 |
commit | 50fc876d44f497d842cab8e01c25673f1bbc17dc (patch) | |
tree | a252287d5a55f6d23182cefe723cc035b2b5f769 /bin | |
parent | 2875d50816ae4b5c71619dd0bb5dafa69f854de6 (diff) | |
download | jenkins.debian.net-50fc876d44f497d842cab8e01c25673f1bbc17dc.tar.xz |
reproducible: html_indexes: add support for a tiny header on top of the pages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_indexes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 56046398..67195889 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -19,6 +19,7 @@ Reference doc for the folowing lists: * pages is just a list of pages. It is actually a dictionary, where every element is a page. Every page has: + `title`: The page title + + `header`: (optional) sane html to be printed on top of the page + `body`: a list of dicts containing every section that made up the page. Every section has: - `icon_status`: the name of a icon (see join_status_icon()) @@ -334,6 +335,8 @@ def build_page(page, suite=None, arch=None): title = pages[page]['title'].format(suite=suite, arch=arch) html = '' footnote = False + if pages[page].get('header'): + html += pages[page].get('header') for section in page_sections: if not suite: # global page for lsuite in SUITES: |