{#- Shared list of datasets linked to a registry record. ``data`` is {"rows": [{"name", "title", "organization", "private", "modified"}], "total": n} from views._linked_datasets; when there are more datasets than rows, a "Show all" link is offered. Import with context: {% import '...dataset_list.html' as dl with context %} -#} {% macro dataset_rows(rows) -%} {%- endmacro %} {% macro dataset_list(data, more_url, empty_text) -%} {% if data.rows %} {{ dataset_rows(data.rows) }} {% if data.total > data.rows|length %}

{{ _('Show all {n}').format(n=data.total) }}

{% endif %} {% else %}

{{ empty_text }}

{% endif %} {%- endmacro %}