{% load i18n %}
<a href="#{{file.index}}" onclick="return !gotoAnchor('{{file.index}}');">{{file.dest_filename|escapejs}}</a>
{% if file.dest_filename != file.depot_filename %}
 (was {{file.depot_filename|escapejs}})
{% endif %}
:
{% if error %}
{%  trans "Diff currently unavailable." %}
{% else %}
{%  if file.binary %}
{%   trans "binary file" %}
{%  else %}
{%   if file.deleted %}
{%    trans "deleted" %}
{%   else %}
{%    blocktrans count file.num_changes as counter %}
 1  change
{%     plural %}
 {{counter}} changes
{%    endblocktrans %} [
{%    ifequal file.chunks|length 1 %}
    <a href="#{{file.index}}.{{file.chunks.0.index}}" onClick="return !gotoAnchor('{{file.index}}.{{file.chunks.0.index}}');"> {% ifequal file.chunks.0.change "insert" %}new content{% endifequal %}{% ifequal file.chunks.0.change "delete" %}deleted content{% endifequal %}</a>
{%    else %}
{%    for chunk_index in file.changed_chunk_indexes %}
     <a href="#{{file.index}}.{{chunk_index}}" onClick="return !gotoAnchor('{{file.index}}.{{chunk_index}}');">{{forloop.counter}}</a>
{%     endfor %}
{%    endifequal %}
 ]
{%   endif %}{# !deleted #}
{%  endif %}{# !binary #}
{% endif %}{# !error #}

{% load i18n %}
<a href="#{{file.index}}" onclick="return !gotoAnchor('{{file.index}}');">{{file.dest_filename}}</a>
{% if file.dest_filename != file.depot_filename %}
 (was {{file.depot_filename}})
{% endif %}
:
{% if error %}
{%  trans "Diff currently unavailable." %}
{% else %}
{%  if file.binary %}
{%   trans "binary file" %}
{%  else %}
{%   if file.deleted %}
{%    trans "deleted" %}
{%   else %}
{%    blocktrans count file.num_changes as counter %}
 1  change
{%     plural %}
 {{counter}} changes
{%    endblocktrans %} [
{%    ifequal file.chunks|length 1 %}
    <a href="#{{file.index}}.{{file.chunks.0.index}}" onClick="return !gotoAnchor('{{file.index}}.{{file.chunks.0.index}}');"> {% ifequal file.chunks.0.change "insert" %}new content{% endifequal %}{% ifequal file.chunks.0.change "delete" %}deleted content{% endifequal %}</a>
{%    else %}
{%    for chunk_index in file.changed_chunk_indexes %}
     <a href="#{{file.index}}.{{chunk_index}}" onClick="return !gotoAnchor('{{file.index}}.{{chunk_index}}');">{{forloop.counter}}</a>
{%     endfor %}
{%    endifequal %}
 ]
{%   endif %}{# !deleted #}
{%  endif %}{# !binary #}
{% endif %}{# !error #}

Fix a small vulnerability in the file change list in the diff viewer.
Fix a small vulnerability in the file change list in the diff viewer.

A change from a while back for some reason accidentally introduced
making entries in the file change list "safe", meaning that any HTML in
the filename would be rendered in the page instead of escaped. This was
due to these using the escapejs filter.

I can't see any reason why we'd want to use this filter in this case, so
I'm removing it, fixing the vulnerability.
