Add logo to the flights page if its set #417 (#550)

This commit is contained in:
Nabeel S 2020-02-14 18:54:05 -05:00 committed by GitHub
parent 77f2138a1c
commit 2d36376e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,17 +5,22 @@
<div class="col-sm-9">
<h5>
<a class="text-c" href="{{ route('frontend.flights.show', [$flight->id]) }}">
@if(optional($flight->airline)->logo)
<img src="{{ $flight->airline->logo }}" alt="{{$flight->airline->name}}"
style="max-width: 80px; width: 100%; height: auto;"/>
@endif
{{ $flight->ident }}
</a>
</h5>
</div>
<div class="col-sm-3 text-right">
{{-- NOTE:
Don't remove the "save_flight" class, or the x-id attribute.
It will break the AJAX to save/delete
<div class="col-sm-3 align-top text-right">
{{--
!!! NOTE !!!
Don't remove the "save_flight" class, or the x-id attribute.
It will break the AJAX to save/delete
"x-saved-class" is the class to add/remove if the bid exists or not
If you change it, remember to change it in the in-array line as well
"x-saved-class" is the class to add/remove if the bid exists or not
If you change it, remember to change it in the in-array line as well
--}}
@if (!setting('pilots.only_flights_from_current') || $flight->dpt_airport_id == Auth::user()->current_airport->icao)
<button class="btn btn-round btn-icon btn-icon-mini save_flight