made YSFGateways responsive...

This commit is contained in:
dg9vh 2016-07-06 15:53:29 +00:00
parent 8fd6631667
commit 2b4ae69865
2 changed files with 11 additions and 2 deletions

View file

@ -22,13 +22,15 @@
<!-- Standard-Panel-Inhalt --> <!-- Standard-Panel-Inhalt -->
<div class="panel-heading">YSFReflectors reported active last 2 hours</div> <div class="panel-heading">YSFReflectors reported active last 2 hours</div>
<!-- Tabelle --> <!-- Tabelle -->
<table class="table"> <div class="table-responsive">
<table id="ysfGateways" class="table table-condensed table-striped table-hover">
<?php <?php
$activeYSFReflectors = getActiveYSFReflectors($reverseLogLinesYSFGateway); $activeYSFReflectors = getActiveYSFReflectors($reverseLogLinesYSFGateway);
if (count($activeYSFReflectors) > 0) { if (count($activeYSFReflectors) > 0) {
?> ?>
<thead>
<tr> <tr>
<th>No.</th> <th>No.</th>
<th>Name</th> <th>Name</th>
@ -37,7 +39,9 @@
<th>Connections</th> <th>Connections</th>
<th>Last info of</th> <th>Last info of</th>
</tr> </tr>
<?php </thead>
<tbody>
<?php
$counter = 1; $counter = 1;
foreach ($activeYSFReflectors as $reflector) { foreach ($activeYSFReflectors as $reflector) {
$timestamp = $reflector[4]; $timestamp = $reflector[4];
@ -63,5 +67,7 @@
} }
} }
?> ?>
<tbody>
</table> </table>
</div>
</div> </div>

View file

@ -84,6 +84,9 @@ var lastHeardT = $('#lastHeard').dataTable( {
var localTxT = $('#localTx').dataTable( { var localTxT = $('#localTx').dataTable( {
"aaSorting": [[0,'desc']] "aaSorting": [[0,'desc']]
} ); } );
var ysfGatewaysT = $('#ysfGateways').dataTable( {
"aaSorting": [[0,'asc']]
} );
}); });
</script> </script>
</body> </body>