cookutils diff web/cooker.cgi @ rev 862

Misc small changes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jan 09 04:37:12 2017 +0200 (2017-01-09)
parents b3238dd85981
children c6bbdbfdc285
line diff
     1.1 --- a/web/cooker.cgi	Sat Dec 31 04:50:37 2016 +0200
     1.2 +++ b/web/cooker.cgi	Mon Jan 09 04:37:12 2017 +0200
     1.3 @@ -222,7 +222,7 @@
     1.4  
     1.5  list_packages() {
     1.6  	cd $PKGS
     1.7 -	ls -1t *.tazpkg | head -20 | \
     1.8 +	ls -1t *.tazpkg | head -n 20 | \
     1.9  	while read file; do
    1.10  		echo -n $(TZ=UTC stat -c '%y' $PKGS/$file | cut -d . -f 1 | sed s/:[0-9]*$//)
    1.11  		echo " : $file"
    1.12 @@ -267,10 +267,10 @@
    1.13  <!DOCTYPE html>
    1.14  <html lang="en">
    1.15  <head>
    1.16 -	<meta charset="utf-8"/>
    1.17 +	<meta charset="UTF-8">
    1.18  	<title>SliTaz Cooker</title>
    1.19 -	<link rel="shortcut icon" href="favicon.ico"/>
    1.20 -	<link rel="stylesheet" type="text/css" href="style.css"/>
    1.21 +	<link rel="shortcut icon" href="favicon.ico">
    1.22 +	<link rel="stylesheet" href="style.css">
    1.23  	<meta name="robots" content="nofollow">
    1.24  </head>
    1.25  <body>
    1.26 @@ -355,7 +355,7 @@
    1.27  			[ -n "$(echo $REQUEST_URI | sed 's|/[^/]*?pkg.*||')" ] ||
    1.28  			echo "<a href='ftp://${HTTP_HOST%:*}/$pkg/'>browse</a>"
    1.29  		else
    1.30 -			if [ $(ls $wok/*$pkg*/receipt 2> /dev/null | wc -l) -eq 0 ]; then
    1.31 +			if [ $(ls $wok/*$pkg*/receipt 2>/dev/null | wc -l) -eq 0 ]; then
    1.32  				echo "No package named: $pkg"
    1.33  			else
    1.34  				ls $wok/$pkg/receipt >/dev/null 2>&1 || pkg="*$pkg*"
    1.35 @@ -689,8 +689,7 @@
    1.36  <div id="footer">
    1.37  	<a href="http://www.slitaz.org/">SliTaz Website</a>
    1.38  	<a href="cooker.cgi">Cooker</a>
    1.39 -	<a href="http://hg.slitaz.org/cookutils/raw-file/tip/doc/cookutils.en.html">
    1.40 -		Documentation</a>
    1.41 +	<a href="doc/cookutils/cookutils.en.html">Documentation</a>
    1.42  </div>
    1.43  
    1.44  </body>