mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
improve table layout 'internet connection'
This commit is contained in:
parent
1d21f524f1
commit
e5ac7d23a3
1 changed files with 30 additions and 32 deletions
|
@ -18,40 +18,38 @@
|
||||||
<h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
|
<h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="card ">
|
<div class="table-responsive">
|
||||||
<div class="card-body">
|
<table class="table">
|
||||||
<div class="table-responsive">
|
<thead>
|
||||||
<table class="table table-hover">
|
<tr>
|
||||||
<thead>
|
<th><?php echo _("Interface"); ?></th>
|
||||||
|
<th><?php echo _("IP Address"); ?></th>
|
||||||
|
<th><?php echo _("Gateway"); ?></th>
|
||||||
|
<th colspan="2"><?php echo _("Internet Access"); ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?>
|
||||||
|
<tr><td colspan=5>No route to the internet found</td></tr>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php foreach($routeInfo as $route): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo _("Interface"); ?></th>
|
<td><?php echo $route['interface'] ?></td>
|
||||||
<th><?php echo _("IP Address"); ?></th>
|
<td><?php echo $route['ip-address'] ?></td>
|
||||||
<th><?php echo _("Gateway"); ?></th>
|
<td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td>
|
||||||
<th colspan="2"><?php echo _("Internet Access"); ?></th>
|
<td>
|
||||||
|
<p class="m-0">
|
||||||
|
<i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?>
|
||||||
|
</p>
|
||||||
|
<p class="m-0">
|
||||||
|
<i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
<?php endforeach ?>
|
||||||
<tbody>
|
<?php endif ?>
|
||||||
<?php
|
</tbody>
|
||||||
if (isset($routeInfo["error"]) || empty($routeInfo)) {
|
</table>
|
||||||
echo "<tr><td colspan=5>No route to the internet found</td></tr>";
|
|
||||||
} else {
|
|
||||||
foreach($routeInfo as $route) {
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td>".$route["interface"]."</td>";
|
|
||||||
echo "<td>".$route["ip-address"]."</td>";
|
|
||||||
echo "<td>".$route["gateway"]."<br>".$route["gw-name"]."</td>";
|
|
||||||
$status = $route["access-ip"] ? "fa-check" : "fa-times";
|
|
||||||
echo '<td><i class="fas '.$status.'"></i><br>'.RASPI_ACCESS_CHECK_IP.'</td>';
|
|
||||||
$status = $route["access-dns"] ? "fa-check" : "fa-times";
|
|
||||||
echo '<td><i class="fas '.$status.'"></i><br>'.RASPI_ACCESS_CHECK_DNS.'</td>';
|
|
||||||
echo "</tr>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue