{% extends theme("layouts/1-column.html") %} {% 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 %}
{% if present_territory %}

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

{% endif %} {% block territory_content %}{% endblock %}
{% if territory_datasets %} {% for dataset in territory_datasets %}
{% endfor %} {% else %}
+

{% if current_user.is_authenticated %} {% if has_pertinent_datasets %} {{ _('Some of your datasets have an exact match!') }}
{{ _('Claim that territory') }} {{ _('and your datasets will appear first.') }} {% else %} {{ _('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) }} {% endif %} {% else %} {{ _('You want to add your own datasets to that list?') }}
{{ _('Log in') }} {{ _('and create resources for that territory.') }} {% endif %}

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