[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Adjust "No index" message for multi-page layout
From: |
Thomas Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH] Adjust "No index" message for multi-page layout |
Date: |
Sun, 1 Apr 2012 02:09:27 +0200 |
We display a message saying that an index has not been generated if no
CSV was found, and in this case we encourage users to contribute to
OpenStreetMap. However, with the multi-page layout, we never generate
a CSV, so this message was always displayed. This commit handles this
case properly.
Signed-off-by: Thomas Petazzoni <address@hidden>
---
www/templates/maposmatic/job.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/www/templates/maposmatic/job.html
b/www/templates/maposmatic/job.html
index 5c6ba96..1bfa15b 100644
--- a/www/templates/maposmatic/job.html
+++ b/www/templates/maposmatic/job.html
@@ -82,7 +82,7 @@
{% if job.output_files.indeces|length %}<li>{% trans "Index: " %} {% for
file in job.output_files.indeces %}<a href="{{ file.1 }}" title="{{ file.2
}}">{{ file.0|upper }}</a> ({{ file.3|filesizeformat }}){% if not forloop.last
%}, {% endif %}{% endfor %}.</li>{% endif %}
</ul>
- {% if not job.output_files.indeces|length %}{% blocktrans %}No index was
generated because no information was available in OpenStreetMap to create one.
Feel free to contribute the missing data yourself. See the <a
href="http://wiki.openstreetmap.org/wiki/Getting_Involved">OSM Wiki</a> for a
start. {% endblocktrans %}{% endif %}
+ {% if job.layout != "multi_page" and not job.output_files.indeces|length
%}{% blocktrans %}No index was generated because no information was available
in OpenStreetMap to create one. Feel free to contribute the missing data
yourself. See the <a
href="http://wiki.openstreetmap.org/wiki/Getting_Involved">OSM Wiki</a> for a
start. {% endblocktrans %}{% endif %}
<a href="http://www.osm.org/?{% if job.administrative_city %}relation={{
job.administrative_osmid|abs }}{% else %}maxlat={{ job.lat_upper_left
}}&maxlon={{ job.lon_bottom_right }}&minlat={{ job.lat_bottom_right
}}&minlon={{ job.lon_upper_left }}{% endif %}">{% trans "View on
OpenStreetMap" %}</a>
--
1.7.4.1
- [Maposmatic-dev] [PATCH] Adjust "No index" message for multi-page layout,
Thomas Petazzoni <=