tazpanel rev 148
network.cgo: Add some info under page title
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 18 00:33:54 2011 +0200 (2011-04-18) |
parents | ac272f688afe |
children | 357740d75f01 |
files | lib/libtazpanel network.cgi |
line diff
1.1 --- a/lib/libtazpanel Sun Apr 17 17:24:02 2011 +0200 1.2 +++ b/lib/libtazpanel Mon Apr 18 00:33:54 2011 +0200 1.3 @@ -62,7 +62,7 @@ 1.4 awk '{ print $2 }' | cut -d ":" -f 2` 1.5 echo "<td>connected</td><td>$ip</td>" 1.6 echo "<td><a href='/network.cgi?scan=$ip'>" 1.7 - echo "<img src="$IMAGES/recharge.png" />Scan ports</a></td>" 1.8 + echo "<img src='$IMAGES/recharge.png' /></a></td>" 1.9 else 1.10 echo "<td>----</td><td>----</td><td></td>" 1.11 fi 1.12 @@ -77,7 +77,7 @@ 1.13 <td>`gettext "Name"`</td> 1.14 <td>`gettext "Status"`</td> 1.15 <td>`gettext "IP Address"`</td> 1.16 - <td></td> 1.17 + <td>`gettext "Scan ports"`</td> 1.18 </tr> 1.19 EOT 1.20 for i in `ls /sys/class/net` 1.21 @@ -86,14 +86,14 @@ 1.22 eth*) 1.23 echo "<tr><td><a href='/network.cgi?eth'> 1.24 <img src='$IMAGES/ethernet.png' />$i</a></td> 1.25 - <td>Ethernet</td> `interface_status`</tr>" ;; 1.26 + <td>Ethernet</td> $(interface_status)</tr>" ;; 1.27 wlan*|ath*|ra*) 1.28 echo "<tr><td><a href='/network.cgi?wifi'> 1.29 <img src='$IMAGES/wireless.png' />$i</a></td> 1.30 - <td>Wireless</td> `interface_status`</tr>" ;; 1.31 + <td>Wireless</td> $(interface_status)</tr>" ;; 1.32 lo) 1.33 echo "<tr><td><img src='$IMAGES/loopback.png' />$i</td> 1.34 - <td>Loopback</td> `interface_status`</tr>" ;; 1.35 + <td>Loopback</td> $(interface_status)</tr>" ;; 1.36 *) 1.37 continue ;; 1.38 esac
2.1 --- a/network.cgi Sun Apr 17 17:24:02 2011 +0200 2.2 +++ b/network.cgi Mon Apr 18 00:33:54 2011 +0200 2.3 @@ -129,8 +129,11 @@ 2.4 . /etc/network.conf 2.5 cat << EOT 2.6 <h2>`gettext "Ethernet connection"`</h2> 2.7 - 2.8 -<h3>$(gettext "Setup a static IP")</h3> 2.9 +<p> 2.10 +$(gettext "Here you can configure a wired connection using DHCP to 2.11 +automatically get a random IP or configure a static/fixed IP") 2.12 +</p> 2.13 +<h3>$(gettext "Configuration")</h3> 2.14 <form method="get" action="$SCRIPT_NAME"> 2.15 <input type="hidden" name="eth" /> 2.16 $(table_start)