{% load i18n %} {% load difftags %} {% load djblets_deco %} {% load djblets_utils %} {% if standalone and error %} {{error}} {% endif %} {% if file.changed_chunks or file.binary %} {% if not standalone %} {% endif %}{# not standalone #} {% if file.binary %} {% else %} {% for chunk in file.chunks %} {% if not chunk.collapsable or not collapseall %} {% for line in chunk.lines %} {% if forloop.first %} {% else %} {% endif %} {% ifequal chunk.change "replace" %} {% else %} {% endifequal %} {% endfor %} {% else %} {% endif %} {% endfor %}{# chunks #} {% endif %}{# not file.binary #} {% if not standalone %}
{{ file.depot_filename }}
{{file.revision}} {{file.dest_revision}}
{% trans "This is a binary file. The content cannot be displayed." %}
{% ifnotequal chunk.change 'equal' %}{% endifnotequal %}{{line.1}}{{line.1}}
{{ line.2|highlightregion:line.3|showextrawhitespace }}
{{line.4}}
{{ line.5|highlightregion:line.6|showextrawhitespace }}
{{ line.2|showextrawhitespace }}
{{line.4}}
{{ line.5|showextrawhitespace }}
{% 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 #}