{% extends "base.html" %} {# server/templates/review/files.html — files changed between two states; the selected file side by side in both versions (E47) #} {% load static forge %} {% block title %}Files · {% if project.name %}{{ project.name }}{% else %}Project{% endif %} · Forge{% endblock %} {% block content %}

← Project

{% if project.name %}{{ project.name }}{% else %}Project{% endif %} {{ project_id|short_id }}

{% include "review/_tabs.html" %} {% if not snapshots %}

No saved state in storage yet.

{% else %}
{% if old != "-" %}⇄{% endif %}
{% if diff_error %}
{{ diff_error }}
{% endif %}

Changed files {{ tree|length }}

{% if same %}

Both sides show the same state.

{% elif not tree and not diff_error %}

No differences.

{% endif %}
{% regroup tree by folder as folders %} {% for folder in folders %} {% if folder.grouper %}
{{ folder.grouper }}/
{% endif %} {% for entry in folder.list %} {{ entry.change }} {{ entry.name }} {% endfor %} {% endfor %}
{% if file %}
{{ file.change }} {{ file.path }} +{{ file.added }} −{{ file.removed }} {% if file.jumps %} {% endif %}
{% if file.note and not file.rows %}

{{ file.note|capfirst }}.

{% endif %} {% if file.rows %}
{% for row in file.rows %} {% endfor %}
{{ old_label }}{{ new_label }}
{% if row.old_no %}{{ row.old_no }}{% endif %} {% for css, text in row.old_tokens %}{% if css %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %} {% if row.new_no %}{{ row.new_no }}{% endif %} {% for css, text in row.new_tokens %}{% if css %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %}
{% if file.truncated %}

Truncated: the file is longer than shown here.

{% endif %} {% endif %}
{% elif not same and not diff_error and not tree %}

No file changed between these two states.

{% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}