source: subversion/sites/other/tilesAtHome_tahngo/templates/base_browse.html @ 9498

Last change on this file since 9498 was 9199, checked in by spaetz, 12 years ago

make 'extend' tag be the first in the template. Django SVN version wants it that way.

File size: 3.3 KB
Line 
1{% extends "base.html" %}
2{% load browse_filter %}
3{% block title %}t@h Browse map{% endblock %}
4{% block breadcrumb %}{{ block.super }} <a href="{% url tah.browse.views.index %}">&raquo;Browse</a> {% endblock %}
5
6{% block heading %}t@h Browse map{% endblock %}
7{% block content %}
8<table id="browsetable" class="browsetable">
9{% comment %}first navigation line starts here{% endcomment %}
10<tr class="browsetable"><td  class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z|add:"-1" }}&x={{ x|div:2 }}&y={{ y|div:2 }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_out.png" class="browseimg"/></a></td>{% for cur_x in x_range %}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z }}&x={{cur_x}}&y={{ y_range|first|add:"-1" }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_N.png" class="browseimg"/></a></td>{% endfor %}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z|add:"1" }}&x={{ x|add:x }}&y={{ y|add:y }} "><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_in.png" class="browseimg"/></a><td/></tr>
11
12{% comment %}main image table starts here{% endcomment %}
13{% for cur_y in y_range %}
14<tr><td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z }}&x={{ x_range|first|add:"-1" }}&y={{ cur_y }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_W.png" class="browseimg"/></a></td>{% for cur_x in x_range %}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{z}}&x={{cur_x}}&y={{cur_y}}"><img src="http://tah.openstreetmap.org/Tiles/{{layer}}/{{z}}/{{cur_x}}/{{cur_y}}.png" width="256" height="256" class="browseimg"/></a></td>
15{% endfor%}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z }}&x={{ x_range|slice:"-1:"|first|add:1 }}&y={{ cur_y }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_E.png" class="browseimg"/></a></td></tr>{% endfor%}
16{% comment %}last navigation line starts here{% endcomment %}
17
18<tr><td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z|add:"-1" }}&x={{ x|div:2 }}&y={{ y|div:2 }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_out.png" class="browseimg"/></a></td>{% for cur_x in x_range %}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z }}&x={{cur_x}}&y={{ y_range|slice:"-1:"|first|add:1 }}"><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_S.png" class="browseimg"/></a></td>{% endfor %}<td class="browsetable"><a href="{% url tah.browse.views.index %}?layer={{layer}}&z={{ z|add:"1" }}&x={{ x|add:x }}&y={{ y|add:y }} "><img src="{% url django.views.generic.simple.direct_to_template template="homepage.html" %}media/browsetable_in.png" class="browseimg"/></a><td/></tr>
19</table>
20<a href="{% url tah.browse.views.tiledetails layer,z,x,y %}">Show Tile detail</a>
21{% endblock %}
Note: See TracBrowser for help on using the repository browser.