diff --git a/mapit/templates/mapit/area.html b/mapit/templates/mapit/area.html index b30a3eea..4a979efe 100644 --- a/mapit/templates/mapit/area.html +++ b/mapit/templates/mapit/area.html @@ -27,10 +27,12 @@

{{ area.name }} ID {{ area.id }}

{% if area.children.count %}
  • {% trans "Children" %}
  • {% endif %} + {% with area.id|slugify as area_id %} +
  • {% blocktrans with json_url=index_url|add:"area/"|add:area_id %}Get this data as JSON{% endblocktrans %}
  • + {% endwith %} - {% with area.id|slugify as area_id %} -

    {% blocktrans with json_url=index_url|add:"area/"|add:area_id %}Get this data as JSON{% endblocktrans %}

    - {% endwith %} + + {% block area_info_extra %}{% endblock %} {% if area.polygons.count %} diff --git a/mapit/templates/mapit/postcode.html b/mapit/templates/mapit/postcode.html index 6b9be01a..523cc53f 100644 --- a/mapit/templates/mapit/postcode.html +++ b/mapit/templates/mapit/postcode.html @@ -8,21 +8,22 @@

    {{ postcode.postcode }}

    - {% url json_view postcode=postcode.postcode as json_url %} -

    {% blocktrans %}Get this data as JSON{% endblocktrans %}

    + + {% block area_info_extra %}{% endblock %}
    {% if postcode.wgs84_lat or postcode.wgs84_lon %}