# HG changeset patch # User Aleksej Bobylev # Date 1500198747 -10800 # Node ID cf98be8bc90455fe28581f2c421b82b3c8ed5c0c # Parent 79b65c3a4e40baa8f74f2f2c926c1bb4214bcb8f lighttpd/index.cgi: show "orphan types" hint in the parentheses (see /package/files). diff -r 79b65c3a4e40 -r cf98be8bc904 lighttpd/index.cgi --- a/lighttpd/index.cgi Fri Jul 14 15:58:38 2017 +0300 +++ b/lighttpd/index.cgi Sun Jul 16 12:52:27 2017 +0300 @@ -1153,7 +1153,8 @@ echo "

Quick jump:

" for p in $split; do @@ -1222,6 +1223,7 @@ ' > $table # Summary table + orphans_types='()' for i in head body; do case $i in head) echo -n '';; @@ -1231,11 +1233,18 @@ tag=${j:0:3}; class="c${j:3:1}0"; [ "$class" == 'c00' ] && class='c01' case $i in head) echo -n "";; - body) printf '' "$(grep ">$tag<" $table | wc -l)";; + body) + tagscount="$(grep ">$tag<" $table | wc -l)" + printf '' "$tagscount" + [ "$tagscount" -gt 0 ] && orphans_types="${orphans_types/)/ $tag)}" + ;; esac done done echo '
$tag%s%s 
' + orphans_types="${orphans_types/( /(}" + [ "$orphans_types" != '()' ] && + echo "" echo -n '
'
 			cat $table