From a93cd8dbb2de5474ec20b728f09395575d81cac2 Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Sat, 16 Jul 2016 10:17:26 -0400 Subject: 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 --- bin/reproducible_common.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bin/reproducible_common.sh') 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 -- cgit v1.2.3-70-g09d2