Geoffrey-Django/templates/GeoffreyApp/location.html

27 lines
687 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>
<hr class="my-4">
{% block info %}{% endblock %}
<iframe src="{{ loc.dynmap_url }}" width="100%" height="500">
Your browser does not support iframes.
</iframe>
{% endblock %}