{# Renders a list of resources with icons and view links. resources - A list of resources (dicts) to render pkg - A package dict that the resources belong to. is_activity_archive - Whether this is an old version of the dataset (and therefore read-only) Example: {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %} #}
{% if not 'external_provider_name' in pkg %} {% if h.check_access('resource_create', {'package_id': pkg['id']}) and not is_activity_archive %} {% link_for _('Push to the Metadata Broker'), named_route='ids_actions.push_package_view', id=pkg['id'], class_='btn btn-success', icon='layer-forward' %} {% endif %} {% endif %}

{{ _('Data and Resources') }}

{% block resource_list %} {% if resources %} {% else %} {% if h.check_access('resource_create', {'package_id': pkg['id']}) and not is_activity_archive %} {% trans url=h.url_for(pkg.type ~ '_resource.new', id=pkg.name) %}

This dataset has no data, why not add some?

{% endtrans %} {% else %}

{{ _('This dataset has no data') }}

{% endif %} {% endif %} {% endblock %}