cookutils rev 90

web: Dont display de full cooklist on main page, just next 20 and have a button to see full list
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 08 14:09:59 2011 +0200 (2011-05-08)
parents b2cf2da8c3b3
children 947b89e7f402
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Sun May 08 11:15:57 2011 +0100
     1.2 +++ b/web/cooker.cgi	Sun May 08 14:09:59 2011 +0200
     1.3 @@ -124,7 +124,7 @@
     1.4  		# Dont allow all files on the system for security reasons.
     1.5  		file=${QUERY_STRING#file=}
     1.6  		case "$file" in
     1.7 -			activity|cooknotes)
     1.8 +			activity|cooknotes|cooklist)
     1.9  				echo "<h2>DB: $file</h2>"
    1.10  				echo '<pre>'
    1.11  				tac $CACHE/$file | \
    1.12 @@ -181,13 +181,13 @@
    1.13  
    1.14  <h2>Summary</h2>
    1.15  
    1.16 -
    1.17  <pre>
    1.18  Running command  : $([ -s "$command" ] && cat $command || echo "Not running")
    1.19  Wok revision     : <a href="http://hg.slitaz.org/wok">$(cd $WOK && hg head --template '{rev}\n')</a>
    1.20  Commits to cook  : $(cat $commits | wc -l)
    1.21  Current cooklist : $(cat $cooklist | wc -l)
    1.22  Broken packages  : $(cat $broken | wc -l)
    1.23 +Bloked packages  : $(cat $bloked | wc -l)
    1.24  </pre>
    1.25  
    1.26  <p>
    1.27 @@ -224,8 +224,9 @@
    1.28  
    1.29  <h2>Cooklist</h2>
    1.30  <pre>
    1.31 -$(cat $cooklist)
    1.32 +$(cat $cooklist | head -n 20)
    1.33  </pre>
    1.34 +<a class="button" href="cooker.cgi?file=cooklist">Full cooklist</a>
    1.35  
    1.36  <h2>Broken</h2>
    1.37  <pre>