{% extends theme("layouts/1-column.html") %} {% set next_url = url_for(request.endpoint, **request.view_args) if not request.routing_exception else url_for('site.home') %} {% set bundle = 'territory' %} {% set logo = territory.logo_url(external=True) or theme_static('img/placeholder_territory.png', external=True) %} {# Children variables outside of blocks are set before parents so children template can't access logo outside of blocks. Workaround: inject logo in meta object from parent template (until a better solution is found) #} {% set ___ = meta.__setitem__('image', logo) %} {% set body_class="territory" %} {% block main_content %}

{{ _('Work in progress') }}

{{ _('The territories pages are no longer maintained. We are working on new territories features.') }}

{% if present_territory %}

{{ _('This territory has been replaced by:') }} {{ present_territory }} {{ _('since') }} {{ present_territory.validity.start.year }}.

{% endif %} {% block territory_content %}{% endblock %}
{% if not territory_datasets %}

+

{% if current_user.is_authenticated %} {{ _('If you want your datasets to appear in that list, the geographical zone associated must be the exact same one of that territory (%(code)s).', code=territory.code) }} {% else %} {{ _('You want to add your own datasets to that list?') }}
{{ _('Log in') }} {{ _('and create resources for that territory.') }} {% endif %}

{% endif %}
{% if territory_datasets %} {% for dataset in territory_datasets %}
{% endfor %} {% endif %} {% for dataset in base_datasets %}
{% endfor %} {% for dataset in other_datasets %}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}