{#
Renders a list of resources with icons and view links.
resources - A list of resources (dicts) to render
data - 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", data=data, resources=data.resources %}
#}
{%- set data = c.data -%}
{{ _('Contracts') }}
{% block contract_list %}
{% if contracts %}
{% block contract_list_inner %}
{% set can_edit = h.check_access('package_update', {'id':data.id }) and not is_activity_archive %}
{% for contract in contracts %}
{% snippet 'package/snippets/contract_item.html', pkg=data, contract=contract, can_edit=can_edit, is_activity_archive=is_activity_archive %}
{% endfor %}
{% endblock %}
{% else %}
{% if h.check_access('resource_create', {'package_id': data['id']}) and not is_activity_archive %}
{% trans url=h.url_for(data.type ~ '_resource.new', id=data.name) %}