tazbug diff web/plugins/mybugs/mybugs.cgi @ rev 147
mybugs plugin: some fix again!
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 23 00:51:16 2017 +0100 (2017-02-23) |
parents | fb5c47b8d6f5 |
children | 6db228036db5 |
line diff
1.1 --- a/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:53:25 2017 +0100 1.2 +++ b/web/plugins/mybugs/mybugs.cgi Thu Feb 23 00:51:16 2017 +0100 1.3 @@ -22,7 +22,7 @@ 1.4 echo "<h3>$(gettext 'My bugs')</h3>" 1.5 echo "<pre>" 1.6 for bug in $(fgrep -l "CREATOR=\"$user\"" ${bugdir}/*/*/bug.conf | \ 1.7 - xargs ls -lt | awk '{print $9}' | head -n 4) 1.8 + xargs ls -lt | awk '{print $9}') 1.9 do 1.10 . ${bug} 1.11 id=$(basename $(dirname $bug)) 1.12 @@ -38,16 +38,16 @@ 1.13 echo "<h3>Debug messages</h3>" 1.14 echo "<pre>" 1.15 for msg in $(fgrep -l "USER=\"$user\"" ${bugdir}/*/*/msg.* | \ 1.16 - xargs ls -lt | awk '{print $9}' | head -n 4) 1.17 + xargs ls -lt | awk '{print $9}') 1.18 do 1.19 . ${msg} 1.20 id=$(basename $(dirname $msg)) 1.21 msgid=$(echo $msg | cut -d "." -f 2) 1.22 - msg="$(echo $MSG | cut -c 1-40)" 1.23 + message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)" 1.24 cat << EOT 1.25 <img src='images/bug.png' alt='' /> \ 1.26 <a href="?id=$id">Bug $id:</a> <span class="date">$DATE</span> \ 1.27 -<a href="?id=$id#msg${msgid}">${msg}...</a> 1.28 +<a href="?id=$id#msg${msgid}">${message}...</a> 1.29 EOT 1.30 done 1.31 echo "</pre>"