{% extends "base.html" %} {% from "_macros.html" import icon, avatar, status_badge, split_path %} {% set tab = "commits" if single else "compare" %} {% block title %}{{ head.title if single else "Comparison" }} ยท {{ repo.name }}{% endblock %} {% block repohead %}{% include "_repohead.html" %}{% endblock %} {% block content %}
{% if single %}

{{ head.title }}

{% if head.body %}
{{ head.body }}
{% endif %}
{{ avatar(head.author) }} {{ head.author or "?" }} committed on {{ head.time }} โ‘‚ {{ head.branch }} {% for t in tags %}๐Ÿท {{ t.name }}{% endfor %}
commit {{ head.short }}
{% if base %}
parent {{ base.short }}
{% else %}
first commit
{% endif %}
</> Files in this version โฌ‡ Download this version as ZIP ๐Ÿ“„ Generate CHANGELOG.md {% if repo.work_dir and not repo.protect_workdir %}
{% endif %}
๐Ÿ“‚ Restore to another folder
Writes this version into a new (or empty) folder; your project folder is not touched. Every file is checked against its checksum after writing.
๐Ÿท Add version tag
โ‘‚ Create branch from here
{% else %}

Comparison

{{ base.short }} {{ base.title }} ({{ base.time }}) โ†’ {{ head.short }} {{ head.title }} ({{ head.time }}) โ‡„ Swap direction Change ๐Ÿ“„ Generate CHANGELOG.md
{% endif %}
{{ changes|length }} file{{ '' if changes|length == 1 else 's' }} changed ยท {{ changes|selectattr("is_vi")|list|length }} VI/control: {% if changes|selectattr("is_vi")|list %}{% endif %}
{% if not changes %}
No file differences between these two versions.
{% endif %} {% if changes|selectattr("is_vi")|list %}
{% endif %}
{% for c in changes %}
{{ status_badge(c.status) }} {{ icon(c.kind) }} {% if c.old_path %}{{ c.old_path }} โ†’ {% endif %}{{ split_path(c.path) }} {% if c.is_vi %} {% if c.status != "renamed" %}{% endif %} Block diagram diff โ†’ {% elif c.status == "modified" or (c.status in ("added","deleted") and file_kind(c.path) in ("proj","lib")) or c.path.endswith((".txt",".md",".ini",".xml",".csv",".lvproj",".lvlib",".lvclass")) %} {% 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 %} {% if c.status != "deleted" %}โฌ‡{% endif %}
{% endfor %}
{% endblock %}