{% extends "base.html" %} {% block content %}
Address | Airport | Last takeoff/landing | Logbook | Software version |
---|---|---|---|---|
{{ device.address }} | {% 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.infos %}{% set info = device.infos|first %}{{ 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 %} |