tazbug diff web/bugs.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 d98dc7dce8d4
children 0cd81dfe65e9
line diff
     1.1 --- a/web/bugs.cgi	Wed Feb 22 23:24:52 2017 +0100
     1.2 +++ b/web/bugs.cgi	Thu Feb 23 00:51:16 2017 +0100
     1.3 @@ -281,13 +281,14 @@
     1.4  	msgid=$(echo $msg | cut -d "." -f 2)
     1.5  	dir=$(dirname $msg)
     1.6  	id=$(basename $dir)
     1.7 +	resume="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)"
     1.8  	. ${msg}
     1.9  	[ -f "${PEOPLE}/${USER}/account.conf" ] && \
    1.10  		. ${PEOPLE}/${USER}/account.conf
    1.11  	cat << EOT
    1.12  <a href="?user=$USER">$(get_gravatar "$MAIL" 24)</a> \
    1.13  <a href="?id=$id">Bug $id</a>: <span class="date">$DATE</span> \
    1.14 -$USER: <a href="?id=$id#msg${msgid}">$(echo $MSG | cut -c 1-40)...</a>
    1.15 +$USER: <a href="?id=$id#msg${msgid}">${resume}...</a>
    1.16  EOT
    1.17  	unset CREATOR USER MAIL
    1.18  }