{% load bleach_tags report_tags custom_tags static %} {% with evidence|get_file_type as file_type %} {% if report_config.figure_caption_location == "top" %}

{{ report_config.label_figure }} 1{{ report_config.prefix_figure }}{{ evidence.caption }}

{% endif %} {% if file_type == "image" %}
{{ evidence.friendly_name }}
{% elif evidence|get_file_type == "text" %} {% with evidence|get_file_content as file_content %} {% if file_content %} {{ file_content }} {% else %}

No text content to preview

This evidence file does not contain any displayable text.

{% endif %} {% endwith %} {% else %} {% if file_type == "missing" %} {% else %}

Preview unavailable for this file type

Download the evidence to open it in a compatible application.

Download Evidence
{% endif %} {% endif %} {% if report_config.figure_caption_location != "top" %}

{{ report_config.label_figure }} 1{{ report_config.prefix_figure }}{{ evidence.caption }}

{% endif %} {% endwith %}