add noindex when map status isn't public

This commit is contained in:
Yohan Boniface 2014-10-02 22:45:22 +02:00
parent 65fc239406
commit 8cef5885e5

View file

@ -8,6 +8,9 @@
{% leaflet_storage_css %} {% leaflet_storage_css %}
{% endcompress %} {% endcompress %}
{% leaflet_storage_js locale=locale %} {% leaflet_storage_js locale=locale %}
{% if object.share_status != object.PUBLIC %}
<meta name="robots" content="noindex">
{% endif %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
@ -15,4 +18,4 @@
{% include "leaflet_storage/map_init.html" %} {% include "leaflet_storage/map_init.html" %}
{% endblock %} {% endblock %}
{% include "leaflet_storage/map_messages.html" %} {% include "leaflet_storage/map_messages.html" %}
{% endblock %} {% endblock %}