{% set file_id = group_name + ":" + file.path %}
{%- if file.status == 'renamed' and file.old_path -%} {{ file.old_path }} → {{ file.path }} {%- else -%} {{ file.path }} {%- endif -%}
{%- if file.status == 'renamed' %}moved{%- else %}{{ file.status }}{%- endif %}
{% if file.additions > 0 %} +{{ file.additions }} {% endif %} {% if file.deletions > 0 %} -{{ file.deletions }} {% endif %}
{% if file.status == 'renamed' and file.deletions == 0 %}
File moved (no changes) — click to view content
 
{% elif not file.hunks or file.hunks|length == 0 %}
📄

No diff content available

(Binary file, untracked, or no changes)

{% elif file.is_full_file_deletion %}
Original file ({{ file.deletions }} lines deleted)
File deleted
{% for hunk in file.hunks %}
{% for line in hunk.lines %}
{{ line.left.line_num }}
- {% if line.left.highlighted_content %} {{ line.left.highlighted_content|safe }} {% else %} {{ line.left.content }} {% endif %}
 
 
{% endfor %}
{% endfor %}
{% else %} {% for hunk in file.hunks %} {% include "diff_hunk.html" with context %} {% endfor %} {% endif %}