# HG changeset patch # User Aleksej Bobylev # Date 1528625010 -10800 # Node ID ecb4a935ac17a35b8c9d0050c7f307bca665c468 # Parent 23700c523fdbc17f14418e37ee5c78a5dabde514 lighttpd/index.cgi: show full commits list using URL '?commits' diff -r 23700c523fdb -r ecb4a935ac17 lighttpd/index.cgi --- a/lighttpd/index.cgi Sat Jun 09 12:24:58 2018 +0300 +++ b/lighttpd/index.cgi Sun Jun 10 13:03:30 2018 +0300 @@ -1010,9 +1010,12 @@ page_header if [ -n "$QUERY_STRING" -a "$QUERY_STRING" != 'debug' ]; then - for list in activity cooknotes cooklist; do + for list in activity cooknotes cooklist commits; do [ -n "$(GET $list)" ] || continue - [ "$list" == 'cooklist' ] && nb="- Packages: $(wc -l < $cooklist)" + case $list in + cooklist) nb="- Packages: $(wc -l < $cooklist)";; + commits) nb="- Packages: $(wc -l < $commits)";; + esac echo '
' echo "

DB: $list $nb

" tac $CACHE/$list | sed 's|cooker.cgi?pkg=||; s|%2B|+|g;