{% load i18n %} {% load difftags %} {% load djblets_deco %} {% load djblets_utils %} {% if standalone and error %} {{error}} {% endif %} {% if file.changed_chunk_indexes or file.binary or file.deleted or file.moved %} {% if not standalone %} {% if file.dest_filename == file.depot_filename %} {% else %} {% endif %}{# file.dest_filename == file.depot_filename #} {% if file.moved and file.num_changes == 0 %} {% else %} {% endif %}{# num_changes and moved #} {% endif %}{# not standalone #} {% if file.binary %} {% elif file.deleted %} {% elif file.whitespace_only %} {% else %} {% for chunk in file.chunks %} {% if not chunk.collapsable or not collapseall %} {% for line in chunk.lines %} {% if forloop.first %} {% else %} {% endif %} {% if chunk.change == "replace" %} {% else %} {% endif %} {% endfor %} {% else %} {% if chunk.meta.headers %} {% if chunk.meta.headers.0 == chunk.meta.headers.1 %} {% else %} {% endif %} {% endif %} {% endif %} {% endfor %}{# chunks #} {% endif %}{# file deleted, binary and whitespace_only #} {% if not standalone %}
{{ file.depot_filename }}{{ file.depot_filename }} {{ file.dest_filename }}{% if file.moved %}{% trans " (moved)" %}{% endif %}
{% trans "No changes were made to this file." %}{{file.revision}} {{file.dest_revision}}
{% trans "This is a binary file. The content cannot be displayed." %}
{% trans "This file was deleted. The content cannot be displayed." %}
{% trans "This file contains only whitespace changes." %}
{% if chunk.change != 'equal' %}{% endif %}{{line.1}}{{line.1}}
{{ line.2|highlightregion:line.3|showextrawhitespace }}
{{line.4}}
{{ line.5|highlightregion:line.6|showextrawhitespace }}
{% if chunk.change == 'insert' and line.8 %} {% trans "Moved from" %} {{line.8}} {% endif %}
{{line.2|showextrawhitespace}}
{{line.4}} {% if chunk.change == 'delete' and line.8 %} {% trans "Moved to" %} {{line.8}} {% endif %}
{{line.5|showextrawhitespace}}
... {{chunk.numlines}} line{{chunk.numlines|pluralize}} hidden [{% trans "Expand" %}]
{{chunk.meta.headers.0}}
{{chunk.meta.headers.0}}
{{chunk.meta.headers.1}}
{% endif %}{# not standalone #} {% else %}{# No changed chunks and not a binary file #} {% if not standalone %} {% endif %}{# not standalone #} {% endif %}{# No changed chunks and not a binary file #}