{% extends "maposmatic/base.html" %} {% comment %} coding: utf-8 maposmatic, the web front-end of the MapOSMatic city map generation system Copyright (C) 2012 David Decotigny Copyright (C) 2012 Frédéric Lehobey Copyright (C) 2012 Pierre Mauduit Copyright (C) 2012 David Mentré Copyright (C) 2012 Maxime Petazzoni Copyright (C) 2012 Thomas Petazzoni Copyright (C) 2012 Gaël Utard This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . {% endcomment %} {% load i18n %} {% load extratags %} {% block body-class %}maps{% endblock %} {% block menu-maps %}active{% endblock %} {% block title %}{% trans "Maps" %}{% endblock %} {% block page %} {% with maps as data %}{% with form.cleaned_data.query as query %}{% include "maposmatic/pagination.html" %}{% endwith %}{% endwith %}

{% trans "Maps" %}


{% for map in maps.object_list %}
{% if map.needs_waiting and map.current_position_in_queue %}

#{{ map.current_position_in_queue }}

{% endif %}

{{ map.maptitle }}

{% if map.administrative_city %} {% else %} {% endif %} {% with map.submission_time|date:"DATETIME_FORMAT" as date %} {% endwith %} {% if map.is_rendering %} {% with map.startofrendering_time|date:"DATETIME_FORMAT" as date %} {% endwith %} {% endif %} {% if map.is_done or map.is_obsolete %} {% with map.endofrendering_time|date:"DATETIME_FORMAT" as date %} {% endwith %} {% endif %} {% if map.is_cancelled %} {% with map.endofrendering_time|date:"DATETIME_FORMAT" as date %} {% endwith %} {% endif %}
{% trans "City" %} {{ map.administrative_city }} ({{ map.administrative_osmid }}){% trans "Bounding Box" %} ({{ map.lat_upper_left|floatformat:3 }}, {{ map.lon_upper_left|floatformat:3 }}) → ({{ map.lat_bottom_right|floatformat:3 }}, {{ map.lon_bottom_right|floatformat:3 }}) {% if map.get_thumbnail %} {% endif %}
{% trans "Layout" %}{{ map.layout }}
{% trans "Stylesheet" %}{{ map.stylesheet }}
{% trans "Overlay(s)" %}{{ map.overlay }}
{% trans "GPX track" %}{{ map.track|gpx_basename }}
{% trans "Paper format" %}{{ map.paper_width_mm }}×{{ map.paper_height_mm }} mm²
{% trans "Map locale" %}{{ MAP_LANGUAGES|getitem:map.map_language }}
{% trans "Request submitted" %}{{ date }}
{% trans "Rendering started" %}{{ date }}
{% trans "Rendering completed" %}{{ date }}
{% trans "Rendering cancelled" %}{{ date }}
{% if map.is_waiting %} {% trans "Pending..." %} {% endif %} {% if map.is_rendering %} {% trans "Rendering..." %} {% endif %} {% if map.is_done_ok and map.has_output_files %}
{% with map.output_files.maps.pdf as file %} {% trans "Download" %} {% endwith %}
{% endif %} {% if not map.is_done_ok and not map.needs_waiting %} {% if map.get_errorlog %} {% trans "Error log" %} {% else %} {% trans "Download" %} {% endif %} {% endif %}
{% empty %}

{% ifequal form.cleaned_data.query "" %} {% blocktrans %}Our database does not contain any rendered maps for the moment.{% endblocktrans %} {% else %} {% blocktrans %}No map matches your query.{% endblocktrans %} {% trans "Create a new map!" %} {% endifequal %}

{% endfor %} {% with maps as data %}{% with form.cleaned_data.query as query %}{% include "maposmatic/pagination.html" %}{% endwith %}{% endwith %} {% endblock %}