-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:py="http://genshi.edgewall.org/"
- xmlns:xi="http://www.w3.org/2001/XInclude">
-<xi:include href="master.html" />
-
-<head>
- <title>Koordinaten-Rechner</title>
-</head>
-
-<body>
+{% extends "master.html" %}
+{% block title %}Koordinaten-Rechner{% endblock %}
+{% block content %}
<h2>Koordinaten-Rechner</h2>
-<p py:if="not c.result">Werkzeug für die Koordinatenumrechnung. Das Quellformat braucht nicht angegeben zu werden, es sollte automatisch erkannt werden. Wenn mehr als eine Koordinate gleichzeitig umgerechnet werden soll, dann bitte pro Zeile eine Koordinate angeben.</p>
+{% if not result %}
+<p>Werkzeug für die Koordinatenumrechnung. Das Quellformat braucht nicht angegeben zu werden, es sollte automatisch erkannt werden. Wenn mehr als eine Koordinate gleichzeitig umgerechnet werden soll, dann bitte pro Zeile eine Koordinate angeben.</p>
+{% endif %}
-<h3 py:if="c.result and not c.no_geoformat">Winterrodeln-Format</h3>
-<p py:if="c.result and not c.no_geoformat">
- <py:for each="line in c.result">${c.geo_winterrodeln([line])}<br/></py:for>
+{% if result and not no_geoformat %}
+<h3>Winterrodeln-Format</h3>
+<p>
+ {% for line in result %}
+ {{geo_winterrodeln([line])}}<br/>
+ {% endfor %}
</p>
+{% endif %}
-<h3 py:if="c.result and not c.no_gmapsformat">Google Maps Plugin Format</h3>
-<p py:if="c.result and not c.no_gmapsformat">
- <py:for each="line in c.result">${c.geo_gmapplugin([line])}<br/></py:for>
+{% if result and not no_gmapsformat %}
+<h3>Google Maps Plugin Format</h3>
+<p>
+ {% for line in result %}
+ {{geo_gmapplugin([line])}}<br/>
+ {% endfor %}
</p>
+{% endif %}
-<h3 py:if="c.result and not c.no_gpxformat">GPX Format</h3>
-<p py:if="c.result and not c.no_gpxformat">
- <py:for each="line in c.result">${c.geo_gpx([line])}<br/></py:for>
+{% if result and not no_gpxformat %}
+<h3>GPX Format</h3>
+<p>
+ {% for line in result %}
+ {{geo_gpx([line])}}<br/>
+ {% endfor %}
</p>
+{% endif %}
-<h3 py:if="c.result and not c.no_geocachingformat">Geocaching-Format</h3>
-<p py:if="c.result and not c.no_geocachingformat">
- <py:for each="line in c.result">${c.geo_geocaching([line])}<br/></py:for>
+{% if result and not no_geocachingformat %}
+<h3>Geocaching-Format</h3>
+<p>
+ {% for line in result %}
+ {{geo_geocaching([line])}}<br/>
+ {% endfor %}
</p>
+{% endif %}
-<form action="${h.url(controller='coordtool', action='convert')}" method="post">
+<form action="{{url_for('coordtool_convert')}}" method="post">
<table>
<tr><th></th><th>Beispiel</th></tr>
- <tr><td><textarea name="input" cols="80" rows="10"/></td>
+ <tr><td><textarea name="input" cols="80" rows="10"></textarea></td>
<td>
<p>47.222134 N 11.467211 E<br/>
47.222143 N 11.467209 E<br/>
47.222153 N 11.467210 E</p>
- <p>N 47° 14.912 E 011° 27.432<br/>
- N 47° 14.925 E 011° 27.439<br/>
- N 47° 14.936 E 011° 27.440</p>
+ <p>N 47° 14.912 E 011° 27.432<br/>
+ N 47° 14.925 E 011° 27.439<br/>
+ N 47° 14.936 E 011° 27.440</p>
<p>47.232922, 11.452239<br/>
47.233008, 11.452201<br/>
47.233810, 11.452150</p>
</td></tr>
- <tr><td><input type="checkbox" name="no_elevation" />Höhe weglassen</td><td></td></tr>
+ <tr><td><input type="checkbox" name="no_elevation" />Höhe weglassen</td><td></td></tr>
<tr><td><input type="checkbox" name="simplify" /> Weg vereinfachen <em>(noch nicht implementiert)</em></td><td></td></tr>
- <tr><td><input type="checkbox" name="swap_latlon" />Geogr. Länge und Breite vertauschen</td><td></td></tr>
+ <tr><td><input type="checkbox" name="swap_latlon" />Geogr. Länge und Breite vertauschen</td><td></td></tr>
<tr><td><input type="checkbox" name="no_geoformat" /> Zielformat <strong><geo></strong> auslassen</td><td>47.222134 N 11.467211 E</td></tr>
<tr><td><input type="checkbox" name="no_gpxformat" /> Zielformat <strong><GPX></strong> auslassen</td><td><trkpt lat="47.181289" lon="11.408827"><ele>1090.57</ele></trkpt></td></tr>
<tr><td><input type="checkbox" name="no_gmapsformat" /> Zielformat <strong>Google Maps Plugin</strong> auslassen</td><td>47.232922, 11.452239</td></tr>
- <tr><td><input type="checkbox" name="no_geocachingformat" /> Zielformat <strong>Geocaching</strong> auslassen</td><td>N 47° 14.029 E 011° 27.129</td></tr>
+ <tr><td><input type="checkbox" name="no_geocachingformat" /> Zielformat <strong>Geocaching</strong> auslassen</td><td>N 47° 14.029 E 011° 27.129</td></tr>
<tr><td><input type="submit" value="Konvertieren"/></td><td></td></tr>
</table>
</form>
-</body>
-</html>
+{% endblock %}