-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowse.html
45 lines (44 loc) · 2.08 KB
/
browse.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "base1fatcolumn.html" %}
{% block column %}
<div class="columnHeader">
<h1>{{ dataType }}s of the {{ filterName }}: {{ filterValue }}
{% ifequal dataType "tag" %}
(<a href="http://maps.google.com?q=http://geotageverything.appspot.com/kml/{{ filterValue|replacestring:" ,_" }}/">map</a>
<a href="/kml/{{ filterValue|replacestring:" ,_" }}/">kml</a>)</h1>
{% endifequal %}
{% ifequal dataType "user" %}
(<a href="http://maps.google.com?q=http://geotageverything.appspot.com/kml/null/{{ filterValue|replacestring:" ,_" }}">map</a>
<a href="/kml/null/{{ filterValue|replacestring:" ,_" }}">kml</a>)</h1>
{% endifequal %}
</div>
{% for geotag_list in displayData %}
{% for geotag in geotag_list %}
{% ifequal dataType "user" %}
{% ifchanged %}
<div class="columnHeader">
<b><a href="/browse/user/{{ geotag.user }}">{{ geotag.user }}</a></b>
(<a href="http://maps.google.com?q=http://geotageverything.appspot.com/kml/{{ geotag.user|replacestring:" ,_" }}/{{ geotag.tag|replacestring:" ,_" }}">map</a>
<a href="/kml/{{ geotag.user|replacestring:" ,_" }}/{{ geotag.tag|replacestring:" ,_" }}">kml</a>) at
</div>
{% endifchanged %}
{% endifequal %}
{% ifequal dataType "tag" %}
{% ifchanged %}
<div class="columnHeader">
<b><a href="/browse/tag/{{ geotag.tag }}">{{ geotag.tag }}</a></b>
(<a href="http://maps.google.com?q=http://geotageverything.appspot.com/kml/{{ geotag.user|replacestring:" ,_" }}/{{ geotag.tag|replacestring:" ,_" }}">map</a>
<a href="/kml/{{ geotag.user|replacestring:" ,_" }}/{{ geotag.tag|replacestring:" ,_" }}">kml</a>) at
</div>
{% endifchanged %}
{% endifequal %}
<div class="columnEntry">
{{ forloop.counter }})
time: <b>{{ geotag.date|escape|slicestring:"5,10" }} {{ geotag.date|escape|slicestring:"11,16" }}</b>
<a href="http://maps.google.com?q={{ geotag.lat }},{{ geotag.lon }}+({{ geotag.tag }})">
lat: <b>{{ geotag.lat }}</b>
lon: <b>{{ geotag.lon }}</b>
</a>
</div>
{% endfor %}
{% endfor %}
{% endblock %}