{% extends "base.html" %} {% block content %}
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.software_version is not none %}{% if device.software_version < 6.6 %} {{ device.software_version }} {% else %}{{ device.software_version }}{% endif %}{% else %} - {% endif %} |