Added the ability to enable/disable flight table display below the map (#983)
* LiveMap Widget Upgrade Added the ability to enable/disable flight table display below the map. Default is on * Update LiveMap.php * Update LiveMap.php * Update live_map.blade.php
This commit is contained in:
@@ -14,6 +14,7 @@ class LiveMap extends Widget
|
|||||||
protected $config = [
|
protected $config = [
|
||||||
'height' => '800px',
|
'height' => '800px',
|
||||||
'width' => '100%',
|
'width' => '100%',
|
||||||
|
'table' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if($config['table'] === true)
|
||||||
<div class="clearfix" style="padding-top: 25px"></div>
|
<div class="clearfix" style="padding-top: 25px"></div>
|
||||||
|
|
||||||
{{--
|
{{--
|
||||||
@@ -95,7 +96,7 @@ and being mindful of the rivets bindings
|
|||||||
{{-- Show the full airport name on hover --}}
|
{{-- Show the full airport name on hover --}}
|
||||||
<td><span rv-title="pirep.dpt_airport.name">{ pirep.dpt_airport.icao }</span></td>
|
<td><span rv-title="pirep.dpt_airport.name">{ pirep.dpt_airport.icao }</span></td>
|
||||||
<td><span rv-title="pirep.arr_airport.name">{ pirep.arr_airport.icao }</span></td>
|
<td><span rv-title="pirep.arr_airport.name">{ pirep.arr_airport.icao }</span></td>
|
||||||
<td>{ pirep.aircraft.name }</td>
|
<td>{ pirep.aircraft.registration }</td>
|
||||||
<td>{ pirep.position.altitude }</td>
|
<td>{ pirep.position.altitude }</td>
|
||||||
<td>{ pirep.position.gs }</td>
|
<td>{ pirep.position.gs }</td>
|
||||||
<td>{ pirep.position.distance.{{setting('units.distance')}} | fallback 0 } /
|
<td>{ pirep.position.distance.{{setting('units.distance')}} | fallback 0 } /
|
||||||
@@ -107,6 +108,7 @@ and being mindful of the rivets bindings
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user