{% extends "base.html" %} {% from "_macros.html" import icon, status_badge, split_path %} {% block title %}{{ la }} ⇄ {{ lb }}{% endblock %} {% block crumb %}/ {{ _("folder comparison") }}{% endblock %} {% block content %} {% set here = request.full_path %}
A{{ a }}{{ count_a }} {{ _("files") }}
B{{ b }}{{ count_b }} {{ _("files") }}
⇄ {{ _("Swap A and B") }} ↻ {{ _("Compare again") }} {{ _("Change…") }}
📄 {{ _("Report with SVG images…") }}
{{ _("A Markdown report: summary table, every changed VI with its change list and one SVG with the A and B block diagrams.") }}
{{ _("Changes to include") }}
{% for k, t in categories %} {% endfor %}
{{ _("Contents") }}
{{ _("Drawing") }}
{{ _n("{n} file differs", "{n} files differ", changes|length) }} {% if stats.modified %}· {{ _("{n} modified", n=stats.modified) }}{% endif %} {% if stats.added %}· {{ _("{n} only in B", n=stats.added) }}{% endif %} {% if stats.deleted %}· {{ _("{n} only in A", n=stats.deleted) }}{% endif %} {% if stats.renamed %}· {{ _("{n} moved", n=stats.renamed) }}{% endif %} · {{ _("{n} identical", n=same|length) }} · {{ changes|selectattr("is_vi")|list|length }} {{ _("VI/control:") }} {% if changes|selectattr("is_vi")|list %}{% endif %}
{% if not changes %}

{{ _("The folders are identical") }}

{{ _("All {n} files have exactly the same content.", n=same|length) }}
{% endif %} {% if changes|selectattr("is_vi")|list %}
{% endif %} {% if changes %}
{% for c in changes %} {% set fa = (a ~ '/' ~ (c.old_path or c.path)) if c.status != 'added' else '' %} {% set fb = (b ~ '/' ~ c.path) if c.status != 'deleted' else '' %}
{{ status_badge(c.status, _) }} {{ icon(c.kind) }} {% if c.old_path %}{{ c.old_path }} → {% endif %}{{ split_path(c.path) }} {% if c.status == "added" %}{{ _("only in B") }}{% elif c.status == "deleted" %}{{ _("only in A") }}{% endif %} {% if c.is_vi %} {% if c.status != "renamed" %}{% endif %} {{ _("Block diagram diff →") }} {% elif c.status == "modified" and (is_text_ext(c.path)) %} {% endif %} {% if c.status == "modified" %}{{ c.old_size|hsize }} → {{ c.new_size|hsize }}{% elif c.status == "deleted" %}{{ c.old_size|hsize }}{% else %}{{ c.new_size|hsize }}{% endif %} 📂
{% endfor %}
{% endif %} {% if same %}
{{ _n("{n} identical file", "{n} identical files", same|length) }}{{ _("— byte-for-byte the same in A and B") }}
{% for c in same %}
{{ icon(c.kind) }} {{ split_path(c.path) }}{{ c.new_size|hsize }}
{% endfor %}
{% endif %} {% if rules %}

{{ _("Ignored by your rules:") }} {{ rules|join(" ") }}

{% endif %} {% endblock %}