tazpanel rev 154

index.cgi: Forgot title and move top button on top..
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 18 05:16:38 2011 +0200 (2011-04-18)
parents ed55f0e369b3
children 5c59ee701236
files index.cgi
line diff
     1.1 --- a/index.cgi	Mon Apr 18 04:48:51 2011 +0200
     1.2 +++ b/index.cgi	Mon Apr 18 05:16:38 2011 +0200
     1.3 @@ -121,27 +121,30 @@
     1.4  		[ -n "$(GET rdate)" ] && echo ""
     1.5  		cat << EOT
     1.6  <div id="wrapper">
     1.7 -	<h2>`gettext "Host:"` `hostname`</h2>
     1.8 -	<p>`gettext "SliTaz administration and configuration Panel"`<p>
     1.9 +	<h2>$(gettext "Host:") $(hostname)</h2>
    1.10 +	<p>$(gettext "SliTaz administration and configuration Panel")<p>
    1.11 +</div>
    1.12 +<div id="actions">
    1.13 +	<a class="button" href="$SCRIPT_NAME?top">$(gettext "Process activity")</a>
    1.14  </div>
    1.15  
    1.16 -<h3>`gettext "Summary"`</h3>
    1.17 +<h3>$(gettext "Summary")</h3>
    1.18  <div id="summary">
    1.19  	<p>
    1.20 -		`gettext "Uptime:"` `uptime`
    1.21 -		<a class="button" href="$SCRIPT_NAME?top">
    1.22 -		<img src="$IMAGES/recharge.png" />`gettext "Process activity"`</a>
    1.23 +		$(gettext "Uptime:") $(uptime)
    1.24  	</p>
    1.25  	<p>
    1.26 -		`gettext "Memory in Mb"`
    1.27 -		`free -m | grep Mem: | awk \
    1.28 -		'{print "| Total:", $2, "| Used:", $3, "| Free:", $4}'`
    1.29 +		$(gettext "Memory in Mb")
    1.30 +		$(free -m | grep Mem: | awk \
    1.31 +		'{print "| Total:", $2, "| Used:", $3, "| Free:", $4}')
    1.32  	</p>
    1.33  <!-- Close summary -->
    1.34  </div>
    1.35  
    1.36 -<h4>`gettext "Network status"`</h4>
    1.37 -`list_network_interfaces`
    1.38 +<h4>$(gettext "Network status")</h4>
    1.39 +$(list_network_interfaces)
    1.40 +
    1.41 +<h4>$(gettext "Filesystem usage statistics")</h4>
    1.42  EOT
    1.43  		# Disk stats (management is done is hardwar.cgi)
    1.44  		table_start