{% if data is not none and "file_id" in data and data.file_id is not none %}
{% if "component_uuid" in data and data.component_uuid is not none and data.component_uuid != config['FEDERATION_UUID'] %}
{% set component_uuid = data.component_uuid %}
{% else %}
{% set component_uuid = none %}
{% endif %}
{% set ns = namespace(found=false) %}
{% for file in files %}
{% if (component_uuid is none and file.id == data.file_id) or (component_uuid is not none and file.fed_id == data.file_id) %}
{% set ns.found = true %}
{% if file.is_hidden %}
{{ _('Hidden File') }}
{% else %}
{{ file.title }}
{% if file | is_image and schema.preview %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if not ns.found %}
{% if component_uuid is none %}
{{ _('File') }} #{{ data.file_id }}
{% else %}
{% set component = get_component_by_uuid(component_uuid) %}
{{ _('File') }} #{{ data.file_id }} @ {{ component.get_name() }}
{% if not data.export_edit_note %}
{{ _('Note:') }} {{ _('This file has not been shared.')}}
{% endif %} {% endif %} {% endif %} {% else %} — {% endif %}