{% 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 %} {% if not standalone %} {% if file.dest_filename == file.depot_filename %} {% else %} {% endif %}{# file.dest_filename == file.depot_filename #} {% endif %}{# not standalone #} {% if file.binary %} {% else %} {% if file.deleted %} {% else %} {% if file.whitespace_only %} {% endif %} {% 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 %} {% ifnotequal chunk.index|add:1 file.num_chunks %} {% if chunk.meta.headers and chunk.meta.headers.0 %} {% ifequal chunk.meta.headers.0.text chunk.meta.headers.1.text %} {% else %} {% endifequal %} {% else %} {% endif %} {% endifnotequal %} {% endif %} {% endfor %}{# chunks #} {% endif %}{# not file.deleted #} {% endif %}{# not file.binary #} {% if not standalone %}
{{ file.depot_filename }}{{ file.depot_filename }} {{ file.dest_filename }}
{{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." %}
{% ifnotequal chunk.change 'equal' %}{% endifnotequal %}{{line.1}}{{line.1}}
{{ line.2|highlightregion:line.3|showextrawhitespace }}
{{line.4}}
{{ line.5|highlightregion:line.6|showextrawhitespace }}
{% ifequal chunk.change 'insert' %}{% if line.8 %} {% trans "Moved from" %} {{line.8}} {% endif %}{% endifequal %} {% if standalone and forloop.first %} {% ifequal chunk.change 'equal' %}
{% trans {% endifequal %} {% endif %}
{{line.2|showextrawhitespace}}
{% if standalone and forloop.first %} {% ifequal chunk.change 'equal' %}
{% endifequal %} {% endif %}
{{line.4}} {% ifequal chunk.change 'delete' %}{% if line.8 %} {% trans "Moved to" %} {{line.8}} {% endif %}{% endifequal %}
{{line.5|showextrawhitespace}}
{% ifnotequal chunk.index 0 %} {% diff_expand_link 'above' _('Show 20 more lines above') 20 0 %} {% endifnotequal %} {% definevar 'expand_text' %}{{chunk.numlines}} line{{chunk.numlines|pluralize}}{% enddefinevar %} {% diff_expand_link 'all' _('Show all lines') 0 0 expand_text %}
{% diff_expand_link 'below' _('Show 20 more lines below') 0 20 %}{% diff_chunk_header chunk.meta.headers.0 %}{% diff_chunk_header chunk.meta.headers.0 %} {% diff_chunk_header 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 #}