{% 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 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 %}