Files
komp_ac/web/templates/pages/admin/table_definition/history.html
2026-08-12 23:40:14 +02:00

40 lines
1.3 KiB
HTML

{#
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 %}Rename history{% endblock %}
{% block content %}
<main>
{% include "pages/admin/table_definition/context.html" %}
<section class="panel">
<h2>Column rename history</h2>
{% if page.history.is_empty() %}
<p class="hint">
No column in {% if page.selection.has_table() %}<code>{{ page.selection.table }}</code>{% else %}this profile{% endif %} has been renamed.
</p>
{% else %}
<table class="builder-table">
<thead><tr><th>Table</th><th>Was</th><th>Is</th><th>When</th></tr></thead>
<tbody>
{% for entry in page.history %}
<tr>
<td><code>{{ entry.table_name }}</code></td>
<td><code>{{ entry.old_column_name }}</code></td>
<td><code>{{ entry.new_column_name }}</code></td>
<td>{{ entry.created_at }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</section>
</main>
{% endblock %}