cookutils rev 1073

lighttpd/index.cgi: show full commits list using URL '?commits'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 10 13:03:30 2018 +0300 (2018-06-10)
parents 23700c523fdb
children 12ab43dfc0a9
files lighttpd/index.cgi
line diff
     1.1 --- a/lighttpd/index.cgi	Sat Jun 09 12:24:58 2018 +0300
     1.2 +++ b/lighttpd/index.cgi	Sun Jun 10 13:03:30 2018 +0300
     1.3 @@ -1010,9 +1010,12 @@
     1.4  	page_header
     1.5  	if [ -n "$QUERY_STRING" -a "$QUERY_STRING" != 'debug' ]; then
     1.6  
     1.7 -		for list in activity cooknotes cooklist; do
     1.8 +		for list in activity cooknotes cooklist commits; do
     1.9  			[ -n "$(GET $list)" ] || continue
    1.10 -			[ "$list" == 'cooklist' ] && nb="- Packages: $(wc -l < $cooklist)"
    1.11 +			case $list in
    1.12 +				cooklist) nb="- Packages: $(wc -l < $cooklist)";;
    1.13 +				commits)  nb="- Packages: $(wc -l < $commits)";;
    1.14 +			esac
    1.15  			echo '<section id="content2">'
    1.16  			echo "<h2>DB: $list $nb</h2>"
    1.17  			tac $CACHE/$list | sed 's|cooker.cgi?pkg=||; s|%2B|+|g;