# HG changeset patch # User Aleksej Bobylev # Date 1528719856 -10800 # Node ID 12ab43dfc0a987130ebe7e1815ec0dcfe9d54360 # Parent ecb4a935ac17a35b8c9d0050c7f307bca665c468 lighttpd/index.cgi: show package icon (optional) diff -r ecb4a935ac17 -r 12ab43dfc0a9 lighttpd/cooker.css --- a/lighttpd/cooker.css Sun Jun 10 13:03:30 2018 +0300 +++ b/lighttpd/cooker.css Mon Jun 11 15:24:16 2018 +0300 @@ -109,7 +109,7 @@ h2 { margin: 0; padding: 0.2rem; - font: bold 1.3rem/2rem sans-serif; + font: bold 1.3rem/1.6rem sans-serif; color: rgba(0,0,0,0.7); } section h2, section h3 { @@ -188,6 +188,18 @@ margin: auto; padding: 0.5em 0.5em 5em; } +#hdr { + margin: 0.2rem; +} +#hdr img { + float: left; + padding-right: 0.5rem; + height: 48px; + width: 48px; +} +#info { + clear: both; +} #content2, div.list { width: 100%; box-sizing: border-box; max-width: 700px; @@ -382,7 +394,6 @@ .summary th, .summary td { white-space: nowrap; width: 1rem; text-align: center; } .summary th:last-child, .summary td:last-child { width: unset; } -#webstat { height: 7em; } .webstat td { text-align: center; width: 16%; } .webstat td:first-child { text-align: unset; width: unset; } diff -r ecb4a935ac17 -r 12ab43dfc0a9 lighttpd/index.cgi --- a/lighttpd/index.cgi Sun Jun 10 13:03:30 2018 +0300 +++ b/lighttpd/index.cgi Mon Jun 11 15:24:16 2018 +0300 @@ -708,6 +708,13 @@ local log active bpkg short_desc='' log="$LOGS/$pkg.log" + echo -n "
" + if [ -e $wok/${requested_pkg:-$pkg}/.icon.png ]; then + echo -n "" + else + echo -n "" + fi + echo -n "" echo -n "

${requested_pkg:-$pkg}" # Get short description for existing packages [ -f $PKGS/packages.info ] && @@ -715,7 +722,7 @@ # If package does not exist (not created yet or broken), get short description # (but only for "main" package) from receipt [ -n "$short_desc" ] || short_desc="$(. $wok/$pkg/receipt; echo "$SHORT_DESC")" - echo ": $short_desc

" + echo "
$short_desc
" echo '
' echo "receipt & stuff"