diff options
author | Valerie R Young <spectranaut@riseup.net> | 2016-07-16 10:17:26 -0400 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-07-24 11:46:03 -0400 |
commit | a93cd8dbb2de5474ec20b728f09395575d81cac2 (patch) | |
tree | 408cb00a5cbc5ff4414e9ece4f8141a4b0fd3d35 /bin/reproducible_common.sh | |
parent | f4ea95be872e2aebcf5ac6b46b5d504d35c078be (diff) | |
download | jenkins.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_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index ac5116ba..293aff74 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -197,16 +197,17 @@ write_page_header() { # Create json for suite links (a list of objects) suite_links="\"suite_list\": [" comma=0 - for i in $SUITES ; do - if [ "$i" = "$SUITE" ] ; then + for s in $SUITES ; do + if [ "$s" = "$SUITE" ] ; then class="current" else class='' fi + uri="/debian/${s}/index_suite_${ARCH}_stats.html" if [ $comma == 1 ] ; then - suite_links+=", {\"s\": \"$i\", \"class\": \"$class\"}" + suite_links+=", {\"s\": \"${s}\", \"class\": \"$class\", \"uri\": \"$uri\"}" else - suite_links+="{\"s\": \"$i\", \"class\": \"$class\"}" + suite_links+="{\"s\": \"${s}\", \"class\": \"$class\", \"uri\": \"$uri\"}" comma=1 fi done @@ -215,16 +216,17 @@ write_page_header() { # Create json for arch links (a list of objects) arch_links="\"arch_list\": [" comma=0 - for i in ${ARCHS} ; do - if [ "$i" = "$ARCH" ] ; then + for a in ${ARCHS} ; do + if [ "$a" = "$ARCH" ] ; then class="current" else class='' fi + uri="/debian/$SUITE/index_suite_${a}_stats.html" if [ $comma == 1 ] ; then - arch_links+=", {\"a\": \"$i\", \"class\": \"$class\"}" + arch_links+=", {\"a\": \"${a}\", \"class\": \"$class\", \"uri\": \"$uri\"}" else - arch_links+="{\"a\": \"$i\", \"class\": \"$class\"}" + arch_links+="{\"a\": \"${a}\", \"class\": \"$class\", \"uri\": \"$uri\"}" comma=1 fi done |