# HG changeset patch # User Christophe Lincoln # Date 1488199839 -3600 # Node ID 3e8160d21207be5915b1db266a2419fcd18848ee # Parent 6db228036db577e10f3e80ec8c6fb1064552fe42 Samaller info on user page about bugs (more to come) diff -r 6db228036db5 -r 3e8160d21207 web/plugins/mybugs/user.sh --- a/web/plugins/mybugs/user.sh Thu Feb 23 18:52:34 2017 +0000 +++ b/web/plugins/mybugs/user.sh Mon Feb 27 13:50:39 2017 +0100 @@ -13,7 +13,7 @@ echo "

Latest 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}' | head -n 3)
 	do
 		. ${bug}
 		id=$(basename $(dirname $bug))
@@ -25,26 +25,26 @@
 	echo "
" fi -if fgrep -q -l "USER=\"$user\"" ${bugdir}/*/*/msg.*; then - show_more="0" - echo "

Latest debug messages

" - echo "
"
+#if fgrep -q -l "USER=\"$user\"" ${bugdir}/*/*/msg.*; then
+	#show_more="0"
+	#echo "

Latest debug messages

" + #echo "
"
 	
-	for msg in $(fgrep -l "USER=\"$user\"" ${bugdir}/*/*/msg.* | \
-		xargs ls -lt | awk '{print $9}' | head -n 4)
-	do
-		. ${msg}
-		id=$(basename $(dirname $msg))
-		msgid=$(echo $msg | cut -d "." -f 2)
-		message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)"
-		cat << EOT
- \
-Bug $id: $DATE \
-${message}...
-EOT
-	done
-	echo "
" -fi + #for msg in $(fgrep -l "USER=\"$user\"" ${bugdir}/*/*/msg.* | \ + #xargs ls -lt | awk '{print $9}' | head -n 4) + #do + #. ${msg} + #id=$(basename $(dirname $msg)) + #msgid=$(echo $msg | cut -d "." -f 2) + #message="$(fgrep MSG= $msg | cut -d \" -f 2 | cut -c 1-40)" + #cat << EOT +# \ +#Bug $id: $DATE \ +#${message}... +#EOT + #done + #echo "
" +#fi if [ "$show_more" ]; then echo "

" @@ -52,7 +52,7 @@ echo "$(gettext 'View all my bugs and messages')" else echo "$(gettext 'View all my bugs and debug messages on:') " - echo "bugs.slitaz.org" + echo "bugs.slitaz.org" fi echo "

" fi