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:
B.Fatih KOZ
2021-01-12 16:24:50 +03:00
committed by GitHub
parent 319a9fc8e1
commit 2b0056b7c5
2 changed files with 4 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ class LiveMap extends Widget
protected $config = [
'height' => '800px',
'width' => '100%',
'table' => true,
];
/**

View File

@@ -64,6 +64,7 @@
</div>
</div>
@if($config['table'] === true)
<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 --}}
<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>{ pirep.aircraft.name }</td>
<td>{ pirep.aircraft.registration }</td>
<td>{ pirep.position.altitude }</td>
<td>{ pirep.position.gs }</td>
<td>{ pirep.position.distance.{{setting('units.distance')}} | fallback 0 } /
@@ -107,6 +108,7 @@ and being mindful of the rivets bindings
</table>
</div>
</div>
@endif
@section('scripts')
<script>