{% extends "base.html" %}

{% block content %}

<link rel="stylesheet" href="{{ url_for('static', filename='css/flags/flags.css') }}"/>


<div class="container">

<div class="panel panel-success">
<div class="panel-heading"><h3 class="panel-title">Receiver Details</h3></div>
<table class="datatable table table-striped table-bordered">
	<tr><td>Name:</td><td><img src="{{ url_for('static', filename='img/Transparent.gif') }}" class="flag flag-{{ receiver.country.iso2|lower }}" alt="{{ receiver.country.iso2 }}"/> {{ receiver.name }}</td></tr>
	<tr><td>Airport:</td>
		<td>{% if airport is not none %}<img src="{{ url_for('static', filename='img/Transparent.gif') }}" class="flag flag-{{ airport.country_code|lower }}" alt="{{ airport.country_code }}"/>
			{% if airport.takeoff_landings %}<a href="{{ url_for('main.airport_detail', airport=airport.id) }}">{{ airport.name }}</a>{% else %}{{ airport.name }}{% endif %}
		{% else %}-{% endif %}
		</td>
	</tr>
	<tr><td>Version:</td><td>{{ receiver.version }}</td></tr>
	<tr><td>Platform:</td><td>{{ receiver.platform }}</td></tr>
	<tr><td>First seen:</td><td>{{ receiver.firstseen }}</td></tr>
	<tr><td>Last seen:</td><td>{{ receiver.lastseen }}</td></tr>
</table>
</div>

</div>

{% endblock %}