Files
ingress_migrate_annotations/templates/preview.html
2026-01-05 13:15:49 +09:00

62 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Ingress Migrator - Preview</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<h1>Migration Preview</h1>
<div class="card">
<h3>Converted YAML</h3>
<ul>
{% for ns, files in yaml_tree.items() %}
<li><strong>{{ ns }}</strong>
<ul>
{% for f in files %}
<li>
<a href="/view/{{ job_id }}/yaml/{{ ns }}/{{ f }}">{{ f }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class="card">
<h3>Original Backup</h3>
<ul>
{% for ns, files in backup_tree.items() %}
<li><strong>{{ ns }}</strong>
<ul>
{% for f in files %}
<li>
<a href="/view/{{ job_id }}/backup/{{ ns }}/{{ f }}">{{ f }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class="card actions-row">
<a class="btn" href="/report/{{ job_id }}">View Migration Report</a>
<a class="btn" href="/download/{{ result_zip }}">Download Result ZIP</a>
<a class="btn" href="/download/{{ backup_zip }}">Download Backup ZIP</a>
</div>
<div class="card actions-row">
<form method="post" action="/apply/{{ job_id }}/yaml">
<button class="btn btn-danger" type="submit">Replace Converted YAML</button>
</form>
<form method="post" action="/apply/{{ job_id }}/backup">
<button class="btn" type="submit">Rollback from Backup</button>
</form>
<button onclick="history.back()">Back</button>
</div>
</div>
</body>
</html>