{% if resource.resource is has_file_references %}
    {% with file_references = resource.resource | associated_file_references %}
        {% include 'component/media.html.j2' %}
    {% endwith %}
{% endif %}
