diff --git a/ogn_python/templates/devices.html b/ogn_python/templates/devices.html index ca9551f..d029552 100644 --- a/ogn_python/templates/devices.html +++ b/ogn_python/templates/devices.html @@ -8,19 +8,19 @@
Address | -Airport | -Last takeoff/landing | -Logbook | +Address | +Registration | +Airport | +Last takeoff/landing | Software version |
---|---|---|---|---|---|---|---|---|
{{ device.address }} | +{% if device.info is not none %}{{ device.info.registration }}{% else %} - {% endif %} | {% if device.takeoff_landings %}{% set last_action = device.takeoff_landings|last %}{{ last_action.airport.name }}{% endif %} | {% if device.takeoff_landings %}{% set last_action = device.takeoff_landings|last %}{% if last_action.is_takeoff == True %}↗{% else %}↘{% endif %} @ {{ last_action.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}{% endif %} - | {% if device.info is not none %}{{ device.info.registration }}{% else %} - {% endif %} | {% if device.software_version is not none %}{% if device.software_version < 6.6 %} {{ device.software_version }} {% else %}{{ device.software_version }}{% endif %}{% else %} - {% endif %} |
Type | Takeoff | Landing | +Time | AGL | Remark | @@ -51,6 +52,7 @@{% if entry.takeoff_track is not none and entry.takeoff_airport.id|string() == sel_airport %} {{ '%02d' | format(entry.takeoff_track/10) }} {% endif %} | {% if entry.landing_timestamp is not none and entry.landing_airport.id|string() == sel_airport %} {{ entry.landing_timestamp.strftime('%H:%M') }} {% endif %} | {% if entry.landing_track is not none and entry.landing_airport.id|string() == sel_airport %} {{ '%02d' | format(entry.landing_track/10) }} {% endif %} | +{% if entry.duration is not none %}{{ entry.duration }}{% endif %} | {% if entry.max_altitude is not none %}{{ '%0.1f'|format(entry.max_altitude - entry.takeoff_airport.altitude) }} m{% endif %} | {% if entry.takeoff_airport is not none and entry.takeoff_airport.id|string() != sel_airport %}Take Off: {{ entry.takeoff_airport.name }} |