{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% load static %} {% block content %}
{# Summary stats #} {% if diff %}
{% if total_add %} {% trans "ADD" %} {{ total_add }} {% trans "splices" %} {% endif %} {% if total_remove %} {% trans "REMOVE" %} {{ total_remove }} {% trans "splices" %} {% endif %} {% if total_unchanged %} {{ total_unchanged }} {% trans "unchanged" %} {% endif %}
{% trans "Apply changes from the closure's Pending Work tab." %}
{# Per-tray diff tables #} {% for tray in diff %}
{{ tray.tray_name }} {% if tray.add %} +{{ tray.add|length }} {% endif %} {% if tray.remove %} -{{ tray.remove|length }} {% endif %} {% if tray.unchanged %} {{ tray.unchanged|length }} {% trans "kept" %} {% endif %}
{% for pair in tray.add %} {% endfor %} {% for pair in tray.remove %} {% endfor %} {% for pair in tray.unchanged %} {% endfor %}
{% trans "Action" %} {% trans "Fiber A" %} {% trans "Fiber B" %}
{% trans "Add" %} {{ pair.name_a }} {{ pair.name_b }}
{% trans "Remove" %} {{ pair.name_a }} {{ pair.name_b }}
{% trans "Keep" %} {{ pair.name_a }} {{ pair.name_b }}
{% endfor %} {# Invalid entries — tray on a different device #} {% if invalid_entries %}
{% trans "Invalid Entries" %} {% trans "(tray belongs to a different device — will be removed on apply)" %} {{ invalid_entries|length }}
{% for entry in invalid_entries %} {% endfor %}
{% trans "Fiber A" %} {% trans "Fiber B" %} {% trans "Tray (wrong device)" %}
{{ entry.fiber_a }} {{ entry.fiber_b }} {{ entry.tray }}
{% endif %} {# Recent changelog messages #} {% if changelog_messages %}
{% trans "Recent Changes" %}
{% for entry in changelog_messages %} {% endfor %}
{% trans "Time" %} {% trans "User" %} {% trans "Message" %}
{{ entry.time|timesince }} {% trans "ago" %} {{ entry.user }} {{ entry.message }}
{% endif %} {% else %}

{% trans "No changes to apply. The plan matches the live state." %}

{% endif %}
{% endblock %}