summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-13 01:55:53 +0200
committerMattia Rizzolo <mattia@mapreri.org>2015-04-16 16:38:49 +0200
commit50fc876d44f497d842cab8e01c25673f1bbc17dc (patch)
treea252287d5a55f6d23182cefe723cc035b2b5f769
parent2875d50816ae4b5c71619dd0bb5dafa69f854de6 (diff)
downloadjenkins.debian.net-50fc876d44f497d842cab8e01c25673f1bbc17dc.tar.xz
reproducible: html_indexes: add support for a tiny header on top of the pages
-rwxr-xr-xbin/reproducible_html_indexes.py3
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: