Browse Source

Merge branch 'tests-pec' of https://code.ffdn.org/FFDN/celutz into tests-pec

Conflicts:
	panorama/templates/panorama/locate_point.html
julpec 8 years ago
parent
commit
d3dcafdeab
1 changed files with 8 additions and 1 deletions
  1. 8 1
      panorama/templates/panorama/locate_point.html

+ 8 - 1
panorama/templates/panorama/locate_point.html

@@ -4,11 +4,16 @@
 
 {% block content %}
 
-{% if panoramas %}
+{% if panoramas != None %}
+
 <h2>Result</h2>
 <p>Panoramas that see the point
   <strong>{% if point_name %}{{ point_name }}{% else %}{{ point_lat }}°, {{ point_lon }}°{% endif %}</strong>:
 </p>
+
+{% if panoramas|length == 0 %}
+<p><strong>No panorama seeing this point!</strong></p>
+{% else %}
 <p>
 <ul>
 {% for panorama, distance, bearing, elevation in panoramas %}
@@ -18,4 +23,6 @@
 </p>
 {% endif %}
 
+{% endif %}
+
 {% endblock content %}