{% load i18n %} {% load difftags %} {% load djblets_deco %} {% load djblets_utils %} {% load static %} {% 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.index|add:1 != file.num_chunks %} {% if chunk.meta.headers and chunk.meta.headers.0 %} {% if chunk.meta.headers.0.text == chunk.meta.headers.1.text %} {% else %} {% endif %} {% 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 %} {% if standalone and forloop.first and chunk.change == 'equal' %}
{% trans {% endif %}
{{line.2|showextrawhitespace}}
{% if standalone and forloop.first and chunk.change == 'equal' %}
{% endif %}
{{line.4}} {% if chunk.change == 'delete' and line.8 %} {% trans "Moved to" %} {{line.8}} {% endif %}
{{line.5|showextrawhitespace}}
{% if chunk.index != 0 %} [+20] {% endif %} [+] {{chunk.numlines}} line{{chunk.numlines|pluralize}}
[+20] [+] {{chunk.meta.headers.0.text}}[+] {{chunk.meta.headers.0.text}} [+] {{chunk.meta.headers.1.text}}
{% 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 #}