{% extends "base.html" %} {% block title %}{{ t('Code History') }}{% endblock %} {% block content %}

{{ t('Code History') }}

{{ t('Every saved change, with what it replaced. Restoring is itself saved as a change, so it can be undone too.') }}
{{ t('Code Editor') }} {% if change %}{{ t('All changes') }}{% endif %}
{% if change %}

#{{ change.id }} · {{ change.path }} · {{ change.username or '' }} · {{ change.at.replace('T', ' ') }} {% if change.note %}
{{ change.note }}{% endif %}

{% for l in diff %}{% if l.startswith('+') and not l.startswith('+++') %}{{ l }}{% elif l.startswith('-') and not l.startswith('---') %}{{ l }}{% elif l.startswith('@@') %}{{ l }}{% else %}{{ l }}{% endif %}{% else %}{{ t('No differences.') }}{% endfor %}
{{ t('Open file') }}
{% else %}
{% for r in rows %} {% else %}{% endfor %}
#{{ t('File') }}{{ t('Note') }}{{ t('By') }}{{ t('When') }}
{{ r.id }}{{ r.path }} {{ r.note or '' }}{{ r.username or '' }}{{ r.at.replace('T', ' ') }}
{{ t('No changes yet.') }}
{% endif %} {% endblock %}