cookutils rev 767

Hide poke button when inactive
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 03 14:39:58 2015 +0100 (2015-11-03)
parents a537875d79f9
children 1e6ac34f05d7
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Sat Oct 10 18:51:21 2015 +0200
     1.2 +++ b/web/cooker.cgi	Tue Nov 03 14:39:58 2015 +0100
     1.3 @@ -409,7 +409,8 @@
     1.4  	<a href="$toolchain">toolchain</a>
     1.5  </p>
     1.6  EOT
     1.7 -		[ -e $CACHE/cooker-request ] && cat <<EOT
     1.8 +		[ -e $CACHE/cooker-request ] &&
     1.9 +		[ $CACHE/activity -nt $CACHE/cooker-request ] && cat <<EOT
    1.10  
    1.11  <a class="button" href="cooker.cgi?poke">Poke cooker</a>
    1.12  EOT