tazpanel rev 144

index.cgi: add top button
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 17 13:23:15 2011 +0200 (2011-04-17)
parents a758062d41a6
children e5e08e734226
files TODO index.cgi
line diff
     1.1 --- a/TODO	Sun Apr 17 13:10:49 2011 +0200
     1.2 +++ b/TODO	Sun Apr 17 13:23:15 2011 +0200
     1.3 @@ -2,7 +2,6 @@
     1.4  ================================================================================
     1.5  
     1.6  
     1.7 -	* Add full support for undigest to pkgs.cgi
     1.8  	* Add support for geniso2usb in live.cgi
     1.9  	* Create a step-by-step Live system builder (ending with an
    1.10  	  ISO or USB install)
     2.1 --- a/index.cgi	Sun Apr 17 13:10:49 2011 +0200
     2.2 +++ b/index.cgi	Sun Apr 17 13:23:15 2011 +0200
     2.3 @@ -97,6 +97,12 @@
     2.4  			esac < $file
     2.5  			echo '</pre>'
     2.6  		fi ;;
     2.7 +	*\ top\ *)
     2.8 +		TITLE="- $(gettext "Process activity")"
     2.9 +		xhtml_header
    2.10 +		echo '<pre>'
    2.11 +		top -n1 -b
    2.12 +		echo '</pre>' ;;
    2.13  	*\ debug\ *)
    2.14  		TITLE="- Debug"
    2.15  		xhtml_header
    2.16 @@ -121,6 +127,8 @@
    2.17  <div id="summary">
    2.18  	<p>
    2.19  		`gettext "Uptime:"` `uptime`
    2.20 +		<a class="button" href="$SCRIPT_NAME?top">
    2.21 +		<img src="$IMAGES/recharge.png" />`gettext "Process activity"`</a>
    2.22  	</p>
    2.23  	<p>
    2.24  		`gettext "Memory in Mb"`