refactor
This commit is contained in:
33
templates_old/view_backup.html
Normal file
33
templates_old/view_backup.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>View Backup</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; background: #f1f1f1; margin: 0; padding: 20px; }
|
||||
.container { max-width: 800px; margin: auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px #ccc; }
|
||||
h1 { text-align: center; }
|
||||
pre { background: #eee; padding: 10px; border-radius: 4px; overflow: auto; }
|
||||
.links { text-align: center; margin-top: 20px; }
|
||||
.links a { color: #007bff; text-decoration: none; margin: 0 10px; }
|
||||
.links a:hover { text-decoration: underline; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Backup Preview</h1>
|
||||
{% if host %}
|
||||
<p><strong>Host:</strong> {{ host.hostname }} ({{ host.type }})</p>
|
||||
{% else %}
|
||||
<p><strong>Default configuration</strong></p>
|
||||
{% endif %}
|
||||
<p><strong>Description:</strong> {{ backup.description }}</p>
|
||||
<p><strong>Created at:</strong> {{ backup.created_at }}</p>
|
||||
<h2>Content:</h2>
|
||||
<pre>{{ backup.content }}</pre>
|
||||
<div class="links">
|
||||
<a href="{{ url_for('backups') }}">Back to Backups</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user