Geoffrey-Django/GeoffreyApp/templates/GeoffreyApp/location.html

32 lines
892 B
HTML
Raw Normal View History

{% 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 %}
<a class="text-light" href="{{ loc.owner.all.first.link }}">{{ loc.owner.all.first }}</a>
{% for owner in loc.owner.all|slice:"1:" %}, <a href="{{ owner.link }}">{{ owner.name }}</a>
{% endfor %}
</p>
{% endif %}
<p>Location: {{ loc.position }}</p>
{% if loc.tunnel %}
<p>Tunnel: {{ loc.tunnel.tunnel_str }}</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 %}