1. Yohan Boniface
  2. django-leaflet-storage


django-leaflet-storage / leaflet_storage / templates / leaflet_storage / map_infos.html

{% load i18n %}
<h4>{{ map.name }}</h4>
<p>{% firstof map.description "No caption yet." %}</p>
{% for category in map.category_set.all %}
    <p><span class="category_color" {% if category.options.color %}style="background-color: {{ category.options.color }};"{% endif %}></span><strong>{{ category }}</strong> {{ category.description }}</p>
{% endfor %}
<hr />
<h5>{% trans "User content credits" %}</h5>
<p>{% blocktrans with licence=map.licence url=map.licence.details %}Map user content has been published under licence <a href="{{ url }}">{{ licence }}</a>{% endblocktrans %}</p>
<h5>{% trans "Tile layers credits" %}</h5>
    {% for tilelayer in map.tilelayers.all %}
        <p><strong>{{ tilelayer.name }}</strong> {{ tilelayer.attribution|safe }}</p>
    {% endfor %}
<div>{% blocktrans with leaflet_url="http://leafletjs.com" django_url="https://www.djangoproject.com" umap_url="http://wiki.openstreetmap.org/wiki/UMap" %}Powered by <a href="{{ leaflet_url }}">Leaflet</a> and <a href="{{ django_url }}">Django</a>, glued by <a href="{{ umap_url }}">uMap project</a>.{% endblocktrans %}</div>