{% load difftags i18n djblets_deco djblets_utils reviewtags static %} {% if standalone and error %} {{error}} {% endif %} {% definevar 'line_fmt' %}
%(line1)s%(end_collapse_html)s
%(line2)s
{% if file.binary %}
{% if modified_diff_file_attachment %}
|
{% else %}
{% if not file.is_new_file %}
{{ file.depot_filename }} | {% endif %}{% if file.is_new_file %} {% endif %} {{file.dest_filename}}{% if file.moved %}{% trans " (moved)" %}{% elif file.copied %}{% trans " (copied)" %}{% endif %} | {% endif %}{# file.dest_filename == file.depot_filename #}|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{% else %} {% if not file.is_new_file %} | {% if download_orig_url %} {% endif %} {{file.revision}} | {% endif %}{% if not file.deleted %} | {% if download_modified_url %} {% endif %} {{file.dest_revision}} | {% else %}{% endif %} {% endif %}{# num_changes and moved #} | |||||||
{% else %} |
|
{% endif %}
| |||||||||
{{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 %}{% 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. The content cannot be displayed." %} {% 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 %} | {% if chunk.meta.headers and chunk.meta.headers.0 %} {% if chunk.meta.headers.0.text == chunk.meta.headers.1.text %}{% diff_chunk_header chunk.meta.headers.0 %} | {% else %}{% diff_chunk_header chunk.meta.headers.0 %} | {% if chunk.meta.headers.1 %} {% diff_chunk_header chunk.meta.headers.1 %} {% endif %} | {% endif %} {% else %}{% endif %} |