tazbug rev 139
Fix getting last 4 message in DB
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 19:03:30 2017 +0100 (2017-02-22) |
parents | 2a172aca8228 |
children | 49fa101e75f5 |
files | web/bugs.cgi web/plugins/packages/packages.cgi |
line diff
1.1 --- a/web/bugs.cgi Wed Feb 22 15:43:58 2017 +0100 1.2 +++ b/web/bugs.cgi Wed Feb 22 19:03:30 2017 +0100 1.3 @@ -894,8 +894,7 @@ 1.4 # List last 4 messages 1.5 echo "<h3>$(gettext "Latest Messages")</h3>" 1.6 echo "<pre>" 1.7 - 1.8 - for msg in $(ls -r $bugdir/*/*/msg.* | head -n 4) 1.9 + for msg in $(ls -lt $bugdir/*/*/msg.* | awk '{print $9}' | head -n 4) 1.10 do 1.11 list_msg ${msg} 1.12 done
2.1 --- a/web/plugins/packages/packages.cgi Wed Feb 22 15:43:58 2017 +0100 2.2 +++ b/web/plugins/packages/packages.cgi Wed Feb 22 19:03:30 2017 +0100 2.3 @@ -19,7 +19,7 @@ 2.4 dir=$(dirname $bug) 2.5 id=$(basename $dir) 2.6 cat << EOT 2.7 -<a href="?user=$USER">$(get_gravatar "$MAIL" 24)</a> \ 2.8 +<img src='images/pkg.png' alt='' /> \ 2.9 Bug $id: <a href='$script?id=$id'>$BUG</a> - <span class='date'>$DATE</span> 2.10 EOT 2.11 fi 2.12 @@ -45,7 +45,7 @@ 2.13 done 2.14 done 2.15 for pkg in $pkgs; do 2.16 - echo "<img src='images/pkg.png' /> Package: <a href='?pkg=$pkg'>$pkg</a>" 2.17 + echo "<img src='images/pkg.png' alt='' /> Package: <a href='?pkg=$pkg'>$pkg</a>" 2.18 done 2.19 echo "</pre>" 2.20 fi