{% extends "_base.html" %} {% block title %}{{ super() }} {% trans %}Collections{% endtrans %}{% endblock %} {% block crumbs %}{{ super() }} / {% trans %}Collections{% endtrans %} {% endblock %} {% block body %} {% set collections = namespace(data=false, records=false) %} {% for col in data['collections'] %} {% if col.get('itemType') == 'record' %} {% set collections.records = true %} {% else %} {% set collections.data = true %} {% endif %} {% endfor %} {% if collections.data %}

{% trans %}Data collections in this service{% endtrans %}

{% for col in data['collections'] %} {% if col.get('itemType') != 'record' %} {% endif %} {% endfor %}
{% trans %}Name{% endtrans %} {% trans %}Description{% endtrans %}
{{ col['title'] | striptags | truncate }} {{ col['description'] | striptags | truncate }}
{% endif %} {% if collections.records %}

{% trans %}Record collections in this service{% endtrans %}

{% for col in data['collections'] %} {% if col.get('itemType') == 'record' %} {% endif %} {% endfor %}
{% trans %}Name{% endtrans %} {% trans %}Description{% endtrans %}
{{ col['title'] | striptags | truncate }} {{ col['description'] | striptags | truncate }}
{% endif %} {% endblock %}