{% if file.moved_or_copied and file.num_changes == 0 %}
{% else %}
{% if not file.is_new_file %}
{% if download_orig_url %}
{% endif %}
{{file.orig_revision}}
{% endif %}
{% if not file.deleted %}
{% if download_modified_url %}
{% endif %}
{{file.modified_revision}}
{% else %}
{% endif %}
{% endif %}{# num_changes and moved #}
{% endif %}{# not standalone #}
{% if file.binary %}
{% if diff_attachment_review_ui_html %}
{{diff_attachment_review_ui_html}}
{% else %}
{% if file.moved_or_copied and file.num_changes == 0 or file.newfile and not orig_diff_file_attachment %}
{% else %}
{% if not orig_diff_file_attachment %}
{% trans "This is a binary file. The content cannot be displayed." %}
{% elif orig_attachment_review_ui_html %}
{{ orig_attachment_review_ui_html}}
{% elif orig_diff_file_attachment.thumbnail %}
{{orig_diff_file_attachment.thumbnail}}
{% else %}
{% trans "No preview available." %}
{% endif %}
{% endif %}
{% if not modified_diff_file_attachment %}
{% trans "This is a binary file. The content cannot be displayed." %}
{% elif modified_attachment_review_ui_html %}
{{ modified_attachment_review_ui_html}}
{% elif modified_diff_file_attachment.thumbnail %}
{{modified_diff_file_attachment.thumbnail}}
{% else %}
{% trans "No preview available." %}
{% endif %}
{% endif %}
{% elif file.moved_or_copied and file.num_changes == 0 %}
{% trans "No changes were made to this file." %}
{% elif file.newfile and file.num_chunks == 0 %}
{% trans "This is a newly-added empty file." %}
{% elif file.deleted and not show_deleted %}
{% if file.num_changes == 0 %}
{% trans "This empty file was deleted. The content cannot be displayed." %}
{% else %}
{% trans "This file was deleted." %}
{% trans "Show content." %}
{% endif %}
{% else %}
{% if not standalone %}
{% if file.code_safety_results %}
{% for checker_id, checker_results in file.code_safety_results.items %}