# HG changeset patch # User Christophe Lincoln # Date 1487807476 -3600 # Node ID 2b7f0070810db22052a99fe68ce198ccae9e2918 # Parent fb5c47b8d6f50e1ac236191a98530158ccf29781 mybugs plugin: some fix again! diff -r fb5c47b8d6f5 -r 2b7f0070810d web/bugs.cgi --- a/web/bugs.cgi Wed Feb 22 23:53:25 2017 +0100 +++ b/web/bugs.cgi Thu Feb 23 00:51:16 2017 +0100 @@ -281,13 +281,14 @@ msgid=$(echo $msg | cut -d "." -f 2) dir=$(dirname $msg) id=$(basename $dir) + resume="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)" . ${msg} [ -f "${PEOPLE}/${USER}/account.conf" ] && \ . ${PEOPLE}/${USER}/account.conf cat << EOT $(get_gravatar "$MAIL" 24) \ Bug $id: $DATE \ -$USER: $(echo $MSG | cut -c 1-40)... +$USER: ${resume}... EOT unset CREATOR USER MAIL } diff -r fb5c47b8d6f5 -r 2b7f0070810d web/plugins/mybugs/mybugs.cgi --- a/web/plugins/mybugs/mybugs.cgi Wed Feb 22 23:53:25 2017 +0100 +++ b/web/plugins/mybugs/mybugs.cgi Thu Feb 23 00:51:16 2017 +0100 @@ -22,7 +22,7 @@ echo "

$(gettext 'My bugs')

" echo "
"
 		for bug in $(fgrep -l "CREATOR=\"$user\"" ${bugdir}/*/*/bug.conf | \
-			xargs ls -lt | awk '{print $9}' | head -n 4)
+			xargs ls -lt | awk '{print $9}')
 		do
 			. ${bug}
 			id=$(basename $(dirname $bug))
@@ -38,16 +38,16 @@
 		echo "

Debug messages

" echo "
"
 		for msg in $(fgrep -l "USER=\"$user\"" ${bugdir}/*/*/msg.* | \
-			xargs ls -lt | awk '{print $9}' | head -n 4)
+			xargs ls -lt | awk '{print $9}')
 		do
 			. ${msg}
 			id=$(basename $(dirname $msg))
 			msgid=$(echo $msg | cut -d "." -f 2)
-			msg="$(echo $MSG | cut -c 1-40)"
+			message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)"
 			cat << EOT
  \
 Bug $id: $DATE \
-${msg}...
+${message}...
 EOT
 		done
 		echo "
" diff -r fb5c47b8d6f5 -r 2b7f0070810d web/plugins/mybugs/user.sh --- a/web/plugins/mybugs/user.sh Wed Feb 22 23:53:25 2017 +0100 +++ b/web/plugins/mybugs/user.sh Thu Feb 23 00:51:16 2017 +0100 @@ -36,13 +36,12 @@ . ${msg} id=$(basename $(dirname $msg)) msgid=$(echo $msg | cut -d "." -f 2) - msg="$(echo $MSG | cut -c 1-40)" + message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)" cat << EOT - msg $msgid \ + \ Bug $id: $DATE \ -${msg}... +${message}... EOT - unset USER DATE MSG done echo "
" fi @@ -50,7 +49,7 @@ if [ "$show_more" ]; then echo "

" if [ "$HTTP_HOST" == "bugs.slitaz.org" ]; then - echo "$(gettext 'View all bugs and messages')" + echo "$(gettext 'View all my bugs and messages')" else echo "$(gettext 'View all my bugs and debug messages on:') " echo "bugs.slitaz.org"