{% extends "base.html" %} {% block title %}History - {{ plan_file.name }} - {{ project.name }} - flanner{% endblock %} {% block content %}
{{ versions|length }} Version(s)
Contributors: {{ versions|map(attribute='created_by')|unique|list|length }}
First Created: {{ versions[-1].created_at.strftime('%Y-%m-%d') if versions }}
{% for version in versions %}
{% if not loop.last %}
{% endif %}

Version {{ version.version }} {% if version.version == plan_file.current_version %} Current {% endif %}

{{ version.created_at.strftime('%Y-%m-%d %H:%M') if version.created_at }}
{{ version.created_by }} {{ version.created_at|relative_time if version.created_at }} {{ version.content_hash[:8] }}...
{% if version.notes %}
{{ version.notes }}
{% else %}
No notes for this version
{% endif %}
View {{ version.file_path|basename }}
{% endfor %}
{% if not versions %}
{% include "_empty_glyph.html" %}

No Version History

This shouldn't happen. There should always be at least one version.

{% endif %}
{% endblock %}