# HG changeset patch # User Pascal Bellard # Date 1467538230 -7200 # Node ID eb765a8c3872763c4118efc5659ae92914476b79 # Parent 5658598bf22a080d72884d0406d79b18ad9ac8ae cooker.cgi: move buttons to the right diff -r 5658598bf22a -r eb765a8c3872 web/cooker.cgi --- a/web/cooker.cgi Sun Jul 03 11:17:49 2016 +0300 +++ b/web/cooker.cgi Sun Jul 03 11:30:30 2016 +0200 @@ -159,8 +159,11 @@ # Optional full list button more_button() { - [ $(wc -l < ${3:-$CACHE/$1}) -gt ${4:-12} ] && - echo "$2" + [ $(wc -l < ${3:-$CACHE/$1}) -gt ${4:-12} ] && cat < + $2 + +EOT } @@ -438,7 +441,14 @@ Broken packages : $(cat $broken | wc -l) Blocked packages : $(cat $blocked | wc -l) - +EOT + [ -e $CACHE/cooker-request ] && + [ $CACHE/activity -nt $CACHE/cooker-request ] && cat < + Poke cooker + +EOT + cat < Packages: $inwok in the wok | $cooked cooked | $unbuilt unbuilt | Server date: $(date -u '+%F %R %Z') @@ -456,26 +466,20 @@ - Architecture $ARCH: toolchain

-EOT - [ -e $CACHE/cooker-request ] && - [ $CACHE/activity -nt $CACHE/cooker-request ] && cat <Poke cooker -EOT - cat <Activity
 $(tac $CACHE/activity | head -n 12 | syntax_highlighter activity)
 
-$(more_button activity "More activity" $CACHE/activity 12) EOT [ -s $cooknotes ] && cat <Cooknotes
 $(tac $cooknotes | head -n 12 | syntax_highlighter activity)
 
-$(more_button cooknotes "More notes" $cooknotes 12) EOT [ -s $commits ] && cat <Cooklist
 $(cat $cooklist | head -n 20)
 
-$(more_button cooklist "Full cooklist" $cooklist 20) EOT [ -s $broken ] && cat <Broken
 $(cat $broken | head -n 20 | sed s"#^[^']*#\0#"g)
 
-$(more_button broken "All broken packages" $broken 20) EOT [ -s $blocked ] && cat <