tazbug diff web/plugins/mybugs/user.sh @ 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/user.sh Wed Feb 22 23:53:25 2017 +0100 1.2 +++ b/web/plugins/mybugs/user.sh Thu Feb 23 00:51:16 2017 +0100 1.3 @@ -36,13 +36,12 @@ 1.4 . ${msg} 1.5 id=$(basename $(dirname $msg)) 1.6 msgid=$(echo $msg | cut -d "." -f 2) 1.7 - msg="$(echo $MSG | cut -c 1-40)" 1.8 + message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)" 1.9 cat << EOT 1.10 -<img src='images/bug.png' alt='' /> msg $msgid \ 1.11 +<img src='images/bug.png' alt='' /> \ 1.12 <a href="?id=$id">Bug $id:</a> <span class="date">$DATE</span> \ 1.13 -<a href="?id=$id#msg${msgid}">${msg}...</a> 1.14 +<a href="?id=$id#msg${msgid}">${message}...</a> 1.15 EOT 1.16 - unset USER DATE MSG 1.17 done 1.18 echo "</pre>" 1.19 fi 1.20 @@ -50,7 +49,7 @@ 1.21 if [ "$show_more" ]; then 1.22 echo "<p>" 1.23 if [ "$HTTP_HOST" == "bugs.slitaz.org" ]; then 1.24 - echo "<a href='?mybugs&user=$user'>$(gettext 'View all bugs and messages')</a>" 1.25 + echo "<a href='?mybugs&user=$user'>$(gettext 'View all my bugs and messages')</a>" 1.26 else 1.27 echo "$(gettext 'View all my bugs and debug messages on:') " 1.28 echo "<a href='?mybugs&user=$user'>bugs.slitaz.org</a>"