{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{{ variable_name }} History - Pychestrate Configuration{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {% if variable_deleted %}

This variable has been deleted. Its history is kept, so you can still see what it held and who changed it.

{% endif %}

Values may hold credentials, so they are hidden until you ask.

{% for entry in history %} {% else %} {{ ui.empty_state("No history found", colspan=5) }} {% endfor %}
Changed At Changed By Change Old Value New Value
{{ entry.changed_at | format_datetime('%Y-%m-%d %H:%M:%S') }} {{ entry.changed_by or '—' }} {% if entry.old_value is none %}Created {% elif entry.new_value is none %}Deleted {% else %}Changed •••••••• {% endif %} {% if entry.old_value is not none %}••••••••{% else %}-{% endif %} {% if entry.new_value is not none %}••••••••{% else %}-{% endif %}
{{ ui.pagination('config.variable_history', page, total_pages, {'name': variable_name, 'per_page': per_page}, total=total) }}

{{ total }} change{{ '' if total == 1 else 's' }} recorded

{% if variable_deleted %} {{ ui.icon("arrow_back") }} Back to Variables {% else %} {{ ui.icon("arrow_back") }} Back to Variable {% endif %}
{% include "site_shell/_reveal_values.html" %} {% endblock %}