{% extends "vantage/base.html" %} {% load vantage i18n %} {% comment %} A record's history page. Two halves: the record as it was at a chosen point (with the fields that can be restored ticked off one by one), and the timeline the point is chosen from. Every field carries its verdict in words, not only in styling — "cannot be worked out" has to be readable by someone who cannot tell muted grey from black. {% endcomment %} {% block content %}
{{ panel.get_label }} · #{{ object.pk }}
{% translate "Nothing has been done to this record through the panel, so there is no history to go back to." %}
{% elif reconstruction.status == "before_create" %}{% blocktranslate with when=reconstruction.starts_at|date:"Y-m-d H:i" %}This record did not exist yet. It was created on {{ when }}.{% endblocktranslate %}
{% elif reconstruction.status == "before_history" %}{% if reconstruction.truncated %} {% blocktranslate count counter=replay_limit with when=reconstruction.starts_at|date:"Y-m-d H:i" %}Only the most recent change is replayed, and it starts on {{ when }}. Nothing earlier can be shown.{% plural %}Only the most recent {{ counter }} changes are replayed, and they start on {{ when }}. Nothing earlier can be shown.{% endblocktranslate %} {% else %} {% blocktranslate with when=reconstruction.starts_at|date:"Y-m-d H:i" %}This record's history starts on {{ when }}. Nothing before that was recorded, so it cannot be shown.{% endblocktranslate %} {% endif %}
{% elif reconstruction.status == "deleted" %}{% translate "At that point this record had been deleted." %}
{% else %} {% if reconstruction.bulk_runs %}{% blocktranslate count counter=reconstruction.bulk_runs %}A bulk change ran on these records after this point. It is logged once for the whole run, not per record, so the fields it could have touched are only shown where the history confirms them.{% plural %}{{ counter }} bulk changes ran on these records after this point. They are logged once for each run, not per record, so the fields they could have touched are only shown where the history confirms them.{% endblocktranslate %}
{% endif %} {% if restore_errors %}{% translate "Nothing was restored, because these old values are no longer accepted:" %}
{% translate "Not in the history, because the audit log only records fields on the edit form:" %} {{ reconstruction.unrecorded|join:", " }}.
{% endif %} {% endif %} {% elif asked %}{% translate "That point is not in this record's history." %}
{% else %}{% translate "Pick a change below, or a date and time, to see this record as it was then." %}
{% endif %}{% blocktranslate with when=entry.restored_as_of|date:"Y-m-d H:i" %}Restored from history, as of {{ when }}.{% endblocktranslate %}
{% elif entry.revealed_field %}{% blocktranslate with name=entry.revealed_field %}Revealed {{ name }}.{% endblocktranslate %}
{% translate "Outside the panel" %}
{% elif entry.action_name %}{% blocktranslate with name=entry.action_name %}Ran {{ name }}.{% endblocktranslate %}
{% blocktranslate count counter=replay_limit %}Showing the most recent change.{% plural %}Showing the most recent {{ counter }} changes.{% endblocktranslate %}
{% endif %} {% else %}{% translate "Nothing has been done to this record through the panel." %}
{% endif %}