{% extends "panorama/main.html" %}
{% load panorama_url %}
{% load distance_filter %}

{% block content %}

  {% if located_panoramas != None %}
    <div id="location-result"></div>
    {% if located_panoramas|length == 0 %}
      <p><strong>No panorama seeing this point!</strong></p>
    {% else %}
      <p>
        <ul>
          {% for panorama, distance, bearing, elevation in located_panoramas %}
            <li><a href="{% panorama_url panorama bearing elevation %}">{{ panorama.name }}</a> at {{ distance|distance }} (click to visualise)</li>
          {% endfor %}
        </ul>
      </p>
    {% endif %}
  {% endif %}
{% endblock content %}
