cookutils rev 925

cook: improve $CAT using; lighttpd/index.cgi: improve top buttons.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 13 02:46:13 2017 +0300 (2017-06-13)
parents f4e577c714e2
children a984acecb3fa
files cook lighttpd/cooker.css lighttpd/index.cgi
line diff
     1.1 --- a/cook	Sun Jun 11 21:39:35 2017 +0300
     1.2 +++ b/cook	Tue Jun 13 02:46:13 2017 +0300
     1.3 @@ -862,8 +862,10 @@
     1.4  		case $PACKAGE in
     1.5  			*-dev) CAT="development|development files" ;;
     1.6  		esac
     1.7 +	fi
     1.8  
     1.9 -		# Manage two-in-one $CAT="$CATEGORY|$SHORT_DESC_ADDITION"
    1.10 +	# Manage two-in-one $CAT="$CATEGORY|$SHORT_DESC_ADDITION"
    1.11 +	if [ -n "$CAT" ]; then
    1.12  		CATEGORY="${CAT%|*}"
    1.13  		SHORT_DESC="$SHORT_DESC (${CAT#*|})"
    1.14  	fi
     2.1 --- a/lighttpd/cooker.css	Sun Jun 11 21:39:35 2017 +0300
     2.2 +++ b/lighttpd/cooker.css	Tue Jun 13 02:46:13 2017 +0300
     2.3 @@ -93,6 +93,7 @@
     2.4  	bottom: 0;
     2.5  	width: 100%;
     2.6  }
     2.7 +div.foot { position: unset; }
     2.8  footer a+a::before {
     2.9  	display: inline-block;
    2.10  	content: ' • ';
     3.1 --- a/lighttpd/index.cgi	Sun Jun 11 21:39:35 2017 +0300
     3.2 +++ b/lighttpd/index.cgi	Tue Jun 13 02:46:13 2017 +0300
     3.3 @@ -642,15 +642,14 @@
     3.4  	[ -n "$WEB_SITE" ] &&
     3.5  		echo "<a class='button icon website' href='$WEB_SITE' target='_blank' rel='noopener noreferrer'>web site</a>"
     3.6  
     3.7 -	if [ -f "$wok/$pkg/taz/$PACKAGE-$VERSION/receipt" ]; then
     3.8 +	[ -f "$wok/$pkg/taz/$PACKAGE-$VERSION/receipt" ] &&
     3.9  		echo "<a class='button icon files$(active files)' href='$base/$pkg/files'>files</a>"
    3.10  
    3.11 -		[ -n "$(ls $wok/$pkg/description*.txt)" ] &&
    3.12 -			echo "<a class='button icon desc$(active description)' href='$base/$pkg/description'>description</a>"
    3.13 +	[ -n "$(ls $wok/$pkg/description*.txt)" ] &&
    3.14 +		echo "<a class='button icon desc$(active description)' href='$base/$pkg/description'>description</a>"
    3.15  
    3.16 -		[ -n "$TARBALL" -a -s "$SRC/$TARBALL" -o -d "$wok/$pkg/taz" ] &&
    3.17 -			echo "<a class='button icon download' href='$base/$pkg/download'>download</a>"
    3.18 -	fi
    3.19 +	[ -n "$TARBALL" -a -s "$SRC/$TARBALL" -o -d "$wok/$pkg/taz" ] &&
    3.20 +		echo "<a class='button icon download' href='$base/$pkg/download'>download</a>"
    3.21  
    3.22  	echo "<a class='button icon browse' href='$base/$pkg/browse/'>browse</a>"
    3.23