Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions resources/views/layouts/default/flights/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down