{% load difftags i18n djblets_deco djblets_utils reviewtags static %} {% if standalone and error %} {{error}} {% endif %} {% definevar 'line_fmt' %} {% if not file.is_new_file %} %(anchor_html)s%(linenum1)s %(moved_to_html)s %(begin_collapse_html)s
%(line1)s
%(end_collapse_html)s {% endif %} %(linenum2)s %(moved_from_html)s
%(line2)s
{% enddefinevar %} {% definevar 'anchor_fmt' %} {% enddefinevar %} {% definevar 'begin_collapse_fmt' %}
{% enddefinevar %} {% definevar 'end_collapse_fmt' %}
{% enddefinevar %} {% definevar 'moved_fmt' %} %(text)s {% enddefinevar %} {% if not standalone %} {% if not file.is_new_file %} {% endif %} {% if file.dest_filename == file.depot_filename %} {% else %} {% if not file.is_new_file %} {% endif %} {% endif %}{# file.dest_filename == file.depot_filename #} {% if file.moved_or_copied and file.num_changes == 0 %} {% else %} {% if not file.is_new_file %} {% endif %} {% if not file.deleted %} {% else %} {% endif %} {% endif %}{# num_changes and moved #} {% endif %}{# not standalone #} {% if file.binary %} {% if orig_diff_file_attachment or modified_diff_file_attachment %} {% if file.moved_or_copied and file.num_changes == 0 or file.newfile and not orig_diff_file_attachment %} {% endif %} {% if 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 %} {% elif file.moved_or_copied and file.num_changes == 0 %} {% elif file.newfile and file.num_chunks == 0 %} {% elif file.deleted and not show_deleted %} {% else %} {% if file.whitespace_only and not standalone %} {% endif %} {% for chunk in file.chunks %} {% if not chunk.collapsable or not collapseall %} {% diff_lines file.index chunk standalone line_fmt anchor_fmt begin_collapse_fmt end_collapse_fmt moved_fmt %} {% 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 %}
{% if file.binary %} {% if modified_diff_file_attachment %} {% elif orig_diff_file_attachment %} {% endif %} {% endif %} {{file.depot_filename}} {% if file.is_symlink %}{% trans " (symlink)" %}{% endif %} {{ file.depot_filename }} {% if file.is_new_file %} {% endif %} {{file.dest_filename}}{% if file.moved %}{% trans " (moved)" %}{% elif file.copied %}{% trans " (copied)" %}{% endif %}{% if file.is_symlink %}{% trans " (symlink)" %}{% endif %}
{% if download_orig_url %} {% endif %} {{file.revision}} {% if download_modified_url %} {% endif %} {{file.dest_revision}}
{% else %}
{% endif %}
    {% if modified_diff_file_attachment %} {% if not modified_attachment_review_ui_html and not diff_attachment_review_ui_html %} {% if modified_diff_file_attachment.review_ui %}
  • {% trans "Review" %}
  • {% else %}
  • {% trans "New Comment" %}
  • {% endif %} {% endif %} {% endif %}
{{diff_attachment_review_ui_html}} {% 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 %}
{% trans "No changes were made to this file." %}
{% trans "This is an empty file." %}
{% 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 %}
{% trans "This file contains only whitespace changes." %}
{% if chunk.index != 0 %} {% diff_expand_link 'above' _('Show 20 more lines above') 20 0 %} {% endif %} {% definevar 'expand_text' %}{% blocktrans count lines=chunk.numlines %}{{lines}} line{% plural %}{{lines}} lines{% endblocktrans %}{% 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 %} {% if chunk.meta.headers.1 %} {% diff_chunk_header chunk.meta.headers.1 %} {% endif %}
{% endif %}