fix indentation

This commit is contained in:
glaszig 2021-04-22 16:35:14 +01:00
parent f6c4d2b1d8
commit c624c36f31
1 changed files with 57 additions and 54 deletions

View File

@ -1,13 +1,15 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="card"> <div class="card">
<div class="card-header">
<div class="row"> <div class="card-header">
<div class="col"> <div class="row">
<i class="fas fa-network-wired mr-2"></i><?php echo _("Networking"); ?> <div class="col">
</div> <i class="fas fa-network-wired mr-2"></i><?php echo _("Networking"); ?>
</div><!-- ./row --> </div>
</div><!-- ./card-header --> </div><!-- ./row -->
</div><!-- ./card-header -->
<div class="card-body"> <div class="card-body">
<div id="msgNetworking"></div> <div id="msgNetworking"></div>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
@ -17,57 +19,57 @@
<div role="tabpanel" class="tab-pane active" id="summary"> <div role="tabpanel" class="tab-pane active" id="summary">
<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="table-responsive"> <div class="table-responsive">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th><?php echo _("Interface"); ?></th> <th><?php echo _("Interface"); ?></th>
<th><?php echo _("IP Address"); ?></th> <th><?php echo _("IP Address"); ?></th>
<th><?php echo _("Gateway"); ?></th> <th><?php echo _("Gateway"); ?></th>
<th colspan="2"><?php echo _("Internet Access"); ?></th> <th colspan="2"><?php echo _("Internet Access"); ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?> <?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?>
<tr><td colspan=5>No route to the internet found</td></tr> <tr><td colspan=5>No route to the internet found</td></tr>
<?php else: ?> <?php else: ?>
<?php foreach($routeInfo as $route): ?> <?php foreach($routeInfo as $route): ?>
<tr> <tr>
<td><?php echo $route['interface'] ?></td> <td><?php echo $route['interface'] ?></td>
<td><?php echo $route['ip-address'] ?></td> <td><?php echo $route['ip-address'] ?></td>
<td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td> <td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td>
<td> <td>
<p class="m-0"> <p class="m-0">
<i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?> <i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?>
</p> </p>
<p class="m-0"> <p class="m-0">
<i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?> <i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?>
</p> </p>
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
<?php endif ?> <?php endif ?>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div>
</div> </div>
<h4 class="mt-3"><?php echo _("Current settings") ?></h4> <h4 class="mt-3"><?php echo _("Current settings") ?></h4>
<div class="row"> <div class="row">
<?php if (!$bridgedEnabled) : // No interface details when bridged ?> <?php if (!$bridgedEnabled) : // No interface details when bridged ?>
<?php foreach ($interfaces as $if): ?> <?php foreach ($interfaces as $if): ?>
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?> <?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<div class="card"> <div class="card">
<div class="card-header"><?php echo $if_quoted ?></div> <div class="card-header"><?php echo $if_quoted ?></div>
<div class="card-body"> <div class="card-body">
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre> <pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
</div>
</div>
</div> </div>
</div> <?php endforeach ?>
</div> <?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div><!-- /.row --> </div><!-- /.row -->
<div class="col-lg-12"> <div class="col-lg-12">
<div class="row"> <div class="row">
@ -77,6 +79,7 @@
</div> </div>
</div> </div>
</div><!-- /.card-body --> </div><!-- /.card-body -->
<div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div> <div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
</div><!-- /.card --> </div><!-- /.card -->
</div><!-- /.col-lg-12 --> </div><!-- /.col-lg-12 -->