기능 추가
This commit is contained in:
@@ -1,44 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Result</title>
|
||||
<title>Ingress Migrator - Preview</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<h1>Migration Result</h1>
|
||||
<h1>Migration Preview</h1>
|
||||
|
||||
<div class="card">
|
||||
<h2>Converted YAML</h2>
|
||||
{% for ns, files in yaml_tree.items() %}
|
||||
<h4>{{ ns }}</h4>
|
||||
<ul>
|
||||
{% for f in files %}
|
||||
<li><a href="/view/{{ job_id }}/yaml/{{ ns }}/{{ f }}">{{ f }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
<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">
|
||||
<h2>Original Backup</h2>
|
||||
{% for ns, files in backup_tree.items() %}
|
||||
<h4>{{ ns }}</h4>
|
||||
<ul>
|
||||
{% for f in files %}
|
||||
<li><a href="/view/{{ job_id }}/backup/{{ ns }}/{{ f }}">{{ f }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
<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">
|
||||
<a href="/report/{{ job_id }}">📄 migration-report.md</a><br><br>
|
||||
<a href="/download/{{ result_zip }}">⬇ result.zip</a><br>
|
||||
<a href="/download/{{ backup_zip }}">⬇ backup.zip</a>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user