summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorCharlie Marshall <charlie0440@gmail.com>2013-07-27 13:14:41 +0100
committerCharlie Marshall <charlie0440@gmail.com>2013-07-27 13:14:41 +0100
commit9b03bd4c80f516cab59ba19c9561804e81befd77 (patch)
treea088cbe14395f1e5855ef735a686eacb1933b1d7 /usr/local/www/widgets
parent23c185bbf4f8e9f480d80699c084d36933ff5060 (diff)
downloadpfsense-9b03bd4c80f516cab59ba19c9561804e81befd77.zip
pfsense-9b03bd4c80f516cab59ba19c9561804e81befd77.tar.gz
improve gateway widget dimensions
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php29
1 files changed, 15 insertions, 14 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index 1b7bd81..f0dca74 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -42,17 +42,17 @@ $counter = 1;
?>
-<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0" summary="gateway status">
+<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;" summary="gateway status">
<tr>
<td class="vncellt" width="30%" id="gatewayname">
Name
</td>
<td width="70%" class="listr">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="heading">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;" summary="heading">
<tr>
- <td width="25%" class="listhdrr">RTT</td>
- <td width="25%" class="listhdrr">Loss</td>
- <td width="50%" class="listhdrr">Status</td>
+ <td width="25%" class="listhdrr ellipsis">RTT</td>
+ <td width="25%" class="listhdrr ellipsis">Loss</td>
+ <td width="50%" class="listhdrr ellipsis">Status</td>
</tr>
</table>
</td>
@@ -65,10 +65,10 @@ $counter = 1;
</strong>
<?php $counter++; ?>
</td>
- <td width="70%" class="listr">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="address">
+ <td width="70%" class="listr ellipsis">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;" summary="address">
<tr>
- <td class="vncellt" width="100%">
+ <td class="vncellt ellipsis" width="100%">
<div id="gateway<?php echo $counter; ?>" style="display:inline">
<?php
if (is_ipaddr($gateway['gateway']))
@@ -85,9 +85,9 @@ $counter = 1;
</td>
</tr>
</table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="statistics">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;" summary="statistics">
<tr>
- <td width="25%" class="listlr" align="center" id="gateway<?php echo $counter; ?>">
+ <td width="25%" class="listlr ellipsis" align="center" id="gateway<?php echo $counter; ?>">
<?php
if ($gateways_status[$gname])
echo htmlspecialchars($gateways_status[$gname]['delay']);
@@ -96,7 +96,7 @@ $counter = 1;
?>
<?php $counter++; ?>
</td>
- <td width="25%" class="listr" align="center" id="gateway<?php echo $counter; ?>">
+ <td width="25%" class="listr ellipsis" align="center" id="gateway<?php echo $counter; ?>">
<?php
if ($gateways_status[$gname])
echo htmlspecialchars($gateways_status[$gname]['loss']);
@@ -105,8 +105,8 @@ $counter = 1;
?>
<?php $counter++; ?>
</td>
- <td width="50%" class="listr" id="gateway<?php echo $counter ?>" >
- <table border="0" cellpadding="0" cellspacing="2" summary="status">
+ <td width="50%" class="listr ellipsis" id="gateway<?php echo $counter ?>" >
+ <table border="0" cellpadding="0" cellspacing="2" style="table-layout: fixed;" summary="status">
<?php
if ($gateways_status[$gname]) {
if (stristr($gateways_status[$gname]['status'], "down")) {
@@ -129,7 +129,7 @@ $counter = 1;
$online = gettext("Unknown");
$bgcolor = "#ADD8E6"; // lightblue
}
- echo "<tr><td bgcolor=\"$bgcolor\">&nbsp;$online&nbsp;</td></tr>\n";
+ echo "<tr><td class=\"ellipsis\" bgcolor=\"$bgcolor\">&nbsp;$online&nbsp;</td></tr>\n";
$counter++;
?>
</table>
@@ -140,3 +140,4 @@ $counter = 1;
</tr>
<?php } // foreach ?>
</table>
+
OpenPOWER on IntegriCloud