Geoffrey-Django/templates/GeoffreyApp/location.html

31 lines
828 B
HTML

{% extends "GeoffreyApp/base.html" %}
{% block header %}
{{ loc.name }}
{% endblock %}
{% block content %}
{% if loc.owner.all|length %}
<p>
{% if loc.owner.all|length > 1 %}
Owners:
{% else %}
Owner:
{% endif %}
{{ loc.owner.all.first }}{% for owner in loc.owner.all|slice:"1:" %}, {{ owner }}
{% endfor %}
</p>
{% endif %}
<p>Location: {{ loc.position }}</p>
{% if loc.tunnel %}
<p>Tunnel: {{ loc.tunnel.get_tunnel_direction_display }} {{ loc.tunnel.tunnel_number }}</p>
{% endif %}
<hr class="my-4">
{% block info %}{% endblock %}
<iframe src="{{ loc.dynmap_url }}" width="100%" height="500">
Your browser does not support iframes.
</iframe>
{% endblock %}