Files
Sebastian Gabrielsson 1625e4ec8f Migration to FastAPI is complete. Also added observability functionality to integrate with opentelemetry.
Migration includes:
* A move away from being a SPA to have actual endpoints
* Every page is generated via Jinja2Template
* Added observability class to export metrics and logs to opentelemetry to integrate with observability stack
* Let's database cache what the current status of all VMs are instead of using a dict to allow more multiple workers reading from a single source
* The vm status API check to proxmox not caches authentication header for an hour instead of requesting a new header everytime it makes a request every thirty seconds.
* Updated front end to be more WCAG compatible but it's still WIP
2026-05-21 15:44:03 +02:00

29 lines
1.0 KiB
HTML

{% extends 'vm-base.html' %}
{% block title %}{{ vm.hostname }} - Console{% endblock %}
{% block content %}
<p>On this page you have a list of all snapshots for this VM</p>
<p>This page can be used to rollback a VM to an earlier snapshot. This will result in data loss for everything after so only do this if the VM is in a completely broken state.</p>
<table>
<thead>
<tr>
<td>Snapshot name</td>
<td>Description</td>
<td>Date</td>
<td>Restore</td>
</tr>
</thead>
<tbody>
{% for snapshot in snapshots %}
<tr class="{{ 'even' if loop.index is even else 'odd'}}">
<td>{{snapshot.name}}</td>
<td>{{snapshot.description}}</td>
<td>{{snapshot.snaptime | datetime_format}}</td>
<td><button class="snap-btn" data-action="snapshot.name">Restore</button></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}