summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-07-15 11:10:45 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-24 11:46:03 -0400
commitf4ea95be872e2aebcf5ac6b46b5d504d35c078be (patch)
tree53bd6b16a08edf729eabbeb36c9a8197b07d14c7 /bin/reproducible_common.py
parentb1c19f2ae8ef5a4ed498c9a596aa75dd863cd878 (diff)
downloadjenkins.debian.net-f4ea95be872e2aebcf5ac6b46b5d504d35c078be.tar.xz
reproducible debian: first pass at main navigation improvements
Reshuffled links, added headers, added hover text, small changes in highlighting of links. Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 6701db26..de60cbd3 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -258,13 +258,25 @@ def convert_into_hms_string(duration):
# See bash equivelent: reproducible_common.sh's "write_page_header()"
def create_main_navigation(page_title, suite, arch, displayed_page=None):
+ suite_list = []
+ for s in SUITES:
+ suite_list.append({
+ 's': s,
+ 'class': 'current' if s == suite else ''
+ })
+ arch_list = []
+ for a in ARCHS:
+ arch_list.append({
+ 'a': a,
+ 'class': 'current' if a == arch else ''
+ })
context = {
'page_title': page_title,
'suite': suite,
'arch': arch,
'project_links_html': renderer.render(project_links_template),
- 'suite_list': [{'s': s} for s in SUITES],
- 'arch_list': [{'a': a} for a in ARCHS],
+ 'suite_list': suite_list,
+ 'arch_list': arch_list,
'debian_uri': DEBIAN_DASHBOARD_URI,
}
if suite != 'experimental':