# HG changeset patch # User Aleksej Bobylev # Date 1528234363 -10800 # Node ID 2233dc83fc9ed9ada51048a30800da4df1daead7 # Parent 0af059297232b409b347d644a6ea28edc91854ed lighttpd/index.cgi: return webstat note back diff -r 0af059297232 -r 2233dc83fc9e lighttpd/index.cgi --- a/lighttpd/index.cgi Wed Jun 06 00:00:22 2018 +0300 +++ b/lighttpd/index.cgi Wed Jun 06 00:32:43 2018 +0300 @@ -846,10 +846,6 @@ # Note, $webstat file must be owned by www, otherwise this function will not be able to do the job. update_webstat() { -# echo '
' -# show_note i 'Please wait while statistics are being collected.' -# echo "
" - # for receipts: rtotal=$(ls $WOK/*/arch.$ARCH | wc -l) rcooked=$(ls -d $WOK/*/taz | wc -l) @@ -874,8 +870,6 @@ rtotal="$rtotal"; rcooked="$rcooked"; runbuilt="$runbuilt"; rblocked="$rblocked"; rbroken="$rbroken" ptotal="$ptotal"; pcooked="$pcooked"; punbuilt="$punbuilt"; pblocked="$pblocked"; pbroken="$pbroken" EOT - - echo '' } @@ -883,7 +877,16 @@ part() { if [ -z "$nojs" ]; then - echo "
" + case $1 in + webstat) + echo -n "
" + show_note i 'Please wait while statistics are being collected.' + echo "
" + ;; + *) + echo "
" + ;; + esac return fi