summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_indexes.py
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-07-16 10:17:26 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-24 11:46:03 -0400
commita93cd8dbb2de5474ec20b728f09395575d81cac2 (patch)
tree408cb00a5cbc5ff4414e9ece4f8141a4b0fd3d35 /bin/reproducible_html_indexes.py
parentf4ea95be872e2aebcf5ac6b46b5d504d35c078be (diff)
downloadjenkins.debian.net-a93cd8dbb2de5474ec20b728f09395575d81cac2.tar.xz
reproducible debian: add cross arch/suite navigation for many pages
From the left navigation "suite/arch" section, you can now navigation between suite and architecture specific results for the following pages: packages sets, packages with notes, packages without notes, packages tested in 24/48hs, all packages state pages and all packages page. Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_indexes.py')
-rwxr-xr-xbin/reproducible_html_indexes.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index 46a0b23f..a46f62a6 100755
--- a/bin/reproducible_html_indexes.py
+++ b/bin/reproducible_html_indexes.py
@@ -44,6 +44,7 @@ Reference doc for the folowing lists:
- force the suite/arch to the defaults
+ notes: if true the query also takes the value "status"
+
Technically speaking, a page can be empty (we all love nonsense) but every
section must have at least a `query` defining what to file in.
"""
@@ -521,6 +522,7 @@ def build_page(page, suite=None, arch=None):
html1, footnote1 = build_page_section(page, section, suite, arch)
html += html1
footnote = True if footnote1 else footnote
+ suite_arch_nav_template = None
if gpage:
destfile = DEBIAN_BASE + '/index_' + page + '.html'
desturl = DEBIAN_URL + '/index_' + page + '.html'
@@ -529,8 +531,11 @@ def build_page(page, suite=None, arch=None):
destfile = DEBIAN_BASE + '/' + suite + '/' + arch + '/index_' + page + '.html'
desturl = DEBIAN_URL + '/' + suite + '/' + arch + '/index_' + \
page + '.html'
+ suite_arch_nav_template = DEBIAN_URI + '/{{suite}}/{{arch}}/index_' + \
+ page + '.html'
write_html_page(title=title, body=html, destfile=destfile, suite=suite,
- arch=arch, style_note=True, displayed_page=page)
+ arch=arch, style_note=True, displayed_page=page,
+ suite_arch_nav_template=suite_arch_nav_template)
log.info('"' + title + '" now available at ' + desturl)