summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-02-10 20:53:00 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-02-10 20:53:00 +0545
commit2ae26abda957f50f292d9d167592669f4f36470e (patch)
tree9baca8bd6be1cf8346d1dbb31204a0029d3abc1e /usr/local/www/widgets/widgets
parenteb2339191437c435bdc959b8bc0de9584aa24f28 (diff)
downloadpfsense-2ae26abda957f50f292d9d167592669f4f36470e.zip
pfsense-2ae26abda957f50f292d9d167592669f4f36470e.tar.gz
Display Gateway Widget column headings only once
The Gateway Widget format was changed recently to allow display of a long IPv6 address. It has made the widget take a lot more screen space when there are a few gateways. This change saves some space - what do people think?
Diffstat (limited to 'usr/local/www/widgets/widgets')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php25
1 files changed, 17 insertions, 8 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index 94a437f..17efa58 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -42,6 +42,20 @@ $counter = 1;
?>
<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="vncellt" width="30%" id="gatewayname">
+ Name
+ </td>
+ <td width="70%" class="listr">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="25%" class="listhdrr">RTT</td>
+ <td width="25%" class="listhdrr">Loss</td>
+ <td width="50%" class="listhdrr">Status</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
<?php foreach ($a_gateways as $gname => $gateway) { ?>
<tr>
<td class="vncellt" width="30%" id="gateway<?php echo $counter; ?>">
@@ -72,12 +86,7 @@ $counter = 1;
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td width="20%" class="listhdrr">RTT</td>
- <td width="20%" class="listhdrr">Loss</td>
- <td width="60%" class="listhdrr">Status</td>
- </tr>
- <tr>
- <td class="listlr" align="center" id="gateway<?php echo $counter; ?>">
+ <td width="25%" class="listlr" align="center" id="gateway<?php echo $counter; ?>">
<?php
if ($gateways_status[$gname])
echo htmlspecialchars($gateways_status[$gname]['delay']);
@@ -86,7 +95,7 @@ $counter = 1;
?>
<?php $counter++; ?>
</td>
- <td class="listr" align="center" id="gateway<?php echo $counter; ?>">
+ <td width="25%" class="listr" align="center" id="gateway<?php echo $counter; ?>">
<?php
if ($gateways_status[$gname])
echo htmlspecialchars($gateways_status[$gname]['loss']);
@@ -95,7 +104,7 @@ $counter = 1;
?>
<?php $counter++; ?>
</td>
- <td class="listr" id="gateway<?php echo $counter ?>" >
+ <td width="50%" class="listr" id="gateway<?php echo $counter ?>" >
<table border="0" cellpadding="0" cellspacing="2">
<?php
if ($gateways_status[$gname]) {
OpenPOWER on IntegriCloud