Merge branch 'fix-map-attribution' of https://github.com/eawag-rdm/ckanext-spatial into eawag-rdm-fix-map-attribution

This commit is contained in:
amercader 2015-10-23 16:26:38 +01:00
commit 6cb922fdd3
1 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,11 @@
<div>Map data &copy; <a
href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors</div>
{% if map_config.type == 'custom' %}
<div>{{ map_config.attribution|safe }}</div>
{% else %}
<div>Map data &copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors</div>
{% if map_config.type == 'mapbox' %}
<div>Tiles by <a href="http://www.mapbox.com/about/maps/">MapBox</a></div>
{% elif map_config.type == 'custom' %}
<div>{{ map_config.attribution|safe }}</div>
{% else %}
<div>Tiles by <a href="http://www.mapquest.com">MapQuest</a></div>
{% endif %}
{% endif %}