tazbug rev 108

Display no message at all
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 10 19:34:43 2017 +0100 (2017-02-10)
parents 2055649f54ed
children 29f9643aaef3
files web/bugs.cgi
line diff
     1.1 --- a/web/bugs.cgi	Fri Feb 10 19:29:38 2017 +0100
     1.2 +++ b/web/bugs.cgi	Fri Feb 10 19:34:43 2017 +0100
     1.3 @@ -280,8 +280,7 @@
     1.4  		. ${PEOPLE}/${USER}/account.conf
     1.5  	cat << EOT
     1.6  <a href="?user=$USER">$(get_gravatar "$MAIL" 24)</a> \
     1.7 -ID: <a href="?id=$id">Bug $id</a> <span class="date">- $DATE</span>
     1.8 -$(echo $MSG | head -n 1)...
     1.9 +ID: <a href="?id=$id">Bug $id</a> by $USER <span class="date">- $DATE</span>
    1.10  EOT
    1.11  	unset CREATOR USER MAIL
    1.12  }
    1.13 @@ -910,17 +909,17 @@
    1.14  
    1.15  <h3>$(gettext "Latest Bugs")</h3>
    1.16  EOT
    1.17 -		# List last 5 bugs
    1.18 +		# List last 4 bugs
    1.19  		echo "<pre>"
    1.20 -		for lb in $(ls ${bugdir} | sort -r -n | head -n 5)
    1.21 +		for lb in $(ls ${bugdir} | sort -r -n | head -n 4)
    1.22  		do
    1.23  			list_bug ${lb}
    1.24  		done
    1.25  		echo "</pre>"
    1.26 -		# List last 3 messages
    1.27 +		# List last 4 messages
    1.28  		echo "<h3>$(gettext "Latest Messages")</h3>"
    1.29  		echo "<pre>"
    1.30 -		for msg in $(ls -t ${bugdir}/*/msg.* | head -n 3)
    1.31 +		for msg in $(ls -t ${bugdir}/*/msg.* | head -n 4)
    1.32  		do
    1.33  			list_msg ${msg}
    1.34  		done