{# GET /admin/profiles/history — crate::pages::admin::table_definition::ui::HistoryPage Read-only, so there is nothing here to swap and no panel fragment beside it. A table in the selection narrows the history to that table; the loader is what applies that, by passing its id to the backend. #} {% extends "ui/base.html" %} {% block title %}{{ nav.tr("td-history-title") }}{% endblock %} {% block content %}
{% include "pages/admin/table_definition/context.html" %}

{{ nav.tr("td-history-heading") }}

{% if page.history.is_empty() %} {% if page.selection.has_table() %}

{{ nav.tr_args("td-history-empty", [("scope", page.selection.table.clone())]) }}

{% else %}

{{ nav.tr("td-history-empty-this-profile") }}

{% endif %} {% else %} {% for entry in page.history %} {% endfor %}
{{ nav.tr("td-col-table") }}{{ nav.tr("td-col-was") }}{{ nav.tr("td-col-is") }}{{ nav.tr("td-col-when") }}
{{ entry.table_name }} {{ entry.old_column_name }} {{ entry.new_column_name }} {{ entry.created_at }}
{% endif %}
{% endblock %}