{% extends "_base.html" %} {% block title %}{{ super() }} {{ data['title'] }} {% endblock %} {% block crumbs %}{{ super() }} / {% trans %}Collections{% endtrans %} {% for link in data['links'] %} {% if link.rel == 'collection' %} / {{ link['title'] | truncate( 25 ) }} {% set col_title = link['title'] %} {% endif %} {% endfor %} / {% trans %}Items{% endtrans %} {% endblock %} {% block extrahead %} {% endblock %} {% block body %}

{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% endfor %}

{% trans %}Items in this collection{% endtrans %}.

{% if data['features'] %}
{% trans %}Warning: Higher limits not recommended!{% endtrans %}
{% trans %}Limit{% endtrans %}:
{% for link in data['links'] %} {% if link['rel'] == 'prev' and data['startindex'] > 0 %} {% trans %}Prev{% endtrans %} {% elif link['rel'] == 'next' and data['features'] %} {% trans %}Next{% endtrans %} {% endif %} {% endfor %}
{% if data.get('uri_field') %} {% endif %} {% if data['title_field'] %} {% endif %} {% for k, v in data['features'][0]['properties'].items() %} {# start with id & title then take first 5 columns for table #} {% if loop.index < 5 and k not in [data['id_field'], data['title_field'], data['uri_field'], 'extent'] %} {% endif %} {% endfor %} {% for ft in data['features'] %} {% if data.get('uri_field') %} {% endif %} {% if data['title_field'] %} {% endif %} {% for k, v in ft['properties'].items() %} {% if loop.index < 5 and k not in [data['id_field'], data['title_field'], data['uri_field'], 'extent'] %} {% endif %} {% endfor %} {% endfor %}
{{ data['uri_field'] }}id{{ data['title_field'] }}{{ k }}
{{ft['properties'][data.get('uri_field')]}}{{ ft.id | string | truncate( 12 ) }}{{ ft['properties'][data['title_field']] | string | truncate( 35 ) }}{{ v | string | truncate( 35 ) }}
{% else %}

{% trans %}No items{% endtrans %}

{% endif %}
{% endblock %} {% block extrafoot %} {% if data['features'] %} {% endif %} {% endblock %}