{#- Paginated "show all" page of datasets: those a publisher publishes (kind 'actor'), those a contact point is linked to (kind 'contact_point'), or those with neither a publisher nor a contact point (kind 'unlinked'). ``data`` is {"rows": [...], "total": n}; see views._linked_datasets. -#} {% extends "admin/base.html" %} {% import 'actor_registry/snippets/dataset_list.html' as dl with context %} {% if kind == 'unlinked' %} {% set title = _('Publishers') %} {% set detail_url = h.url_for('actor_registry.actors_index', missing=missing) %} {# ``heading`` comes from the view (it depends on the chosen ``missing`` filter) #} {% elif kind == 'actor' %} {% set title = item.name %} {% set detail_url = h.url_for('actor_registry.actors_show', item_id=item.id) %} {% set heading %}{% trans count=data.total %}Publisher for {{ count }} dataset{% pluralize %}Publisher for {{ count }} datasets{% endtrans %}{% endset %} {% else %} {% set title = item.name %} {% set detail_url = h.url_for('actor_registry.contactpoints_show', item_id=item.id) %} {% set heading %}{% trans count=data.total %}Linked to {{ count }} dataset{% pluralize %}Linked to {{ count }} datasets{% endtrans %}{% endset %} {% endif %} {% block subtitle %}{{ title }}{% endblock %} {% block breadcrumb_content %}
{{ _('No datasets to show.') }}
{% endif %} {% endblock %}