2019-02-10 13:00:35 +00:00
{% extends "base.html" %}
{% block content %}
2019-03-23 11:25:21 +00:00
< div class = "container" >
2019-02-10 13:00:35 +00:00
2019-03-23 11:25:21 +00:00
< div class = "panel panel-success" >
2020-10-27 19:46:14 +00:00
< div class = "panel-heading" > < h3 class = "panel-title" > Sender Details< / h3 > < / div >
2019-02-10 13:00:35 +00:00
< table class = "datatable table table-striped table-bordered" >
2020-10-27 19:46:14 +00:00
< tr > < td > Name:< / td > < td > {{ sender.name }}< / td > < / tr >
< tr > < td > Address:< / td > < td > {{ sender.address if sender.address else '-' }}< / td > < / tr >
< tr > < td > Real Address:< / td > < td > {{ sender.real_address if sender.real_address else '-' }}< / td > < / tr >
< tr > < td > Stealth:< / td > < td > {{ sender.stealth if sender.stealth else '-' }}< / td > < / tr >
< tr > < td > Aircraft Type:< / td > < td > {{ sender.aircraft_type.name }}< / td > < / tr >
< tr > < td > Software Version:< / td > < td > {{ sender.software_version if sender.software_version else '-' }}< / td > < / tr >
< tr > < td > Hardware Version:< / td > < td > {{ sender.hardware_version if sender.hardware_version else '-' }}< / td > < / tr >
< tr > < td > First seen:< / td > < td > {{ sender.firstseen }}< / td > < / tr >
< tr > < td > Last seen:< / td > < td > {{ sender.lastseen }}< / td > < / tr >
2019-02-10 13:00:35 +00:00
< / table >
< / div >
2019-03-23 11:25:21 +00:00
2019-04-03 20:35:33 +00:00
< div class = "panel panel-success" >
2020-10-27 19:46:14 +00:00
< div class = "panel-heading" > < h3 class = "panel-title" > Sender Info< / h3 > < / div >
2019-04-03 20:35:33 +00:00
< table class = "datatable table table-striped table-bordered" >
< tr >
< th > Aircraft< / th >
< th > Registration< / th >
< th > Competition Sign< / th >
< th > Aircraft Type< / th >
< th > Source< / th >
< / tr >
2020-10-27 19:46:14 +00:00
{% for info in sender.infos %}
2019-04-03 20:35:33 +00:00
< tr >
< td > {{ info.aircraft }}< / td >
< td > {{ info.registration }}< / td >
< td > {{ info.competition }}< / td >
2020-10-27 19:46:14 +00:00
< td > {{ info.aircraft_type.name }}< / td >
< td > {{ info.address_origin.name }}< / td >
2019-04-03 20:35:33 +00:00
< / tr >
2019-04-03 21:00:33 +00:00
{% endfor %}
2019-04-03 20:35:33 +00:00
< / table >
< / div >
2020-10-27 19:46:14 +00:00
< div class = "panel panel-success" >
< div class = "panel-heading" > < h3 class = "panel-title" > Range View< / h3 > < / div >
< img src = "{{ url_for('main.range_view', sender_id=sender.id) }}" class = "img-thumbnail" >
< / div >
2019-09-12 06:25:39 +00:00
< div class = "panel panel-success" >
< div class = "panel-heading" > < h3 class = "panel-title" > Logbook< / h3 > < / div >
< table class = "datatable table table-striped table-bordered" >
2019-09-12 07:00:27 +00:00
< theader >
< tr >
2020-10-27 19:46:14 +00:00
< th > < / th >
< th > < / th >
2019-09-12 07:00:27 +00:00
< th colspan = "2" > Airport< / th >
< th colspan = "2" > Time UTC< / th >
2019-09-21 13:08:48 +00:00
< th > < / th >
< th > < / th >
2019-09-12 07:00:27 +00:00
< / tr >
< tr >
2020-10-27 19:46:14 +00:00
< th > #< / th >
< th > Date< / th >
2019-09-12 07:00:27 +00:00
< th > Takeoff< / th >
< th > Landing< / th >
< th > Takeoff< / th >
< th > Landing< / th >
2019-09-21 13:08:48 +00:00
< th > Duration< / th >
< th > AGL< / th >
2019-09-12 07:00:27 +00:00
< / tr >
< / theader >
< tbody >
2019-09-21 13:08:48 +00:00
{% set ns = namespace(mydate=none) %}
2020-10-27 19:46:14 +00:00
{% for entry in sender.logbook_entries %}
2019-09-12 07:00:27 +00:00
< tr >
2020-10-27 19:46:14 +00:00
< td > {{ loop.index }}< / td >
2020-11-15 17:25:01 +00:00
< td > {% if ns.mydate != entry.reference_timestamp.strftime('%Y-%m-%d') %}{% set ns.mydate = entry.reference_timestamp.strftime('%Y-%m-%d') %}{{ ns.mydate }}{% endif %}< / td >
2020-10-27 19:46:14 +00:00
< td > {% if entry.takeoff_airport is not none %}< a href = "{{ url_for('main.airport_detail', airport_id=entry.takeoff_airport.id) }}" > {{ entry.takeoff_airport.name }}< / a > {% endif %}< / td >
< td > {% if entry.landing_airport is not none %}< a href = "{{ url_for('main.airport_detail', airport_id=entry.landing_airport.id) }}" > {{ entry.landing_airport.name }}< / a > {% endif %}< / td >
2019-09-12 07:00:27 +00:00
< td > {% if entry.takeoff_timestamp is not none %} {{ entry.takeoff_timestamp.strftime('%H:%M') }} {% endif %}< / td >
< td > {% if entry.landing_timestamp is not none %} {{ entry.landing_timestamp.strftime('%H:%M') }} {% endif %}< / td >
< td > {% if entry.duration is not none %}{{ entry.duration }}{% endif %}< / td >
< td > {% if entry.max_altitude is not none %}{{ '%0.1f'|format(entry.max_altitude - entry.takeoff_airport.altitude) }} m{% endif %}< / td >
< / tr >
{% endfor %}
< / tbody >
2019-09-12 06:25:39 +00:00
< / table >
< / div >
2019-02-10 13:00:35 +00:00
< / div >
2019-04-03 20:35:33 +00:00
{% endblock %}