mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
A tombstone kept the VM's name and UUID but not its compute, so the page could not say where the VM had been. It now stores the compute's name (as text: the compute may be the one deleted) and the list shows it; records made before this have no host. Deleting a record says so, and the admin tables use scope="col" instead of the invalid span="col". Closes #217
67 lines
2.9 KiB
HTML
67 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% load bootstrap_icons %}
|
|
{% block title %}{% trans "Removed VMs" %}{% endblock %}
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
{% include 'search_block.html' %}
|
|
<h1 class="page-header">{% trans "Removed VMs" %}</h1>
|
|
<p class="text-muted">{% trans "VMs that vanished from their compute. Their owners come back if the same UUID shows up again before the record expires." %}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
{% if not tombstones %}
|
|
<div class="col-lg-12">
|
|
<div class="alert alert-info shadow-sm">
|
|
{% bs_icon 'info-circle' %} {% trans "No removed VMs" %}
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="col-lg-12">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">{% trans "Name" %}</th>
|
|
<th scope="col">{% trans "UUID" %}</th>
|
|
<th scope="col">{% trans "Host" %}</th>
|
|
<th scope="col">{% trans "Owners" %}</th>
|
|
<th scope="col">{% trans "Removed" %}</th>
|
|
<th scope="col">{% trans "Expires" %}</th>
|
|
<th scope="col">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="searchable">
|
|
{% for tombstone in tombstones %}
|
|
<tr>
|
|
<td>
|
|
<strong>{{ tombstone.name }}</strong>
|
|
{% if tombstone.is_template %}<span class="badge bg-secondary">{% trans "Template" %}</span>{% endif %}
|
|
</td>
|
|
<td>{{ tombstone.uuid }}</td>
|
|
<td>{{ tombstone.host }}</td>
|
|
<td>{{ tombstone.owner_names|join:", " }}</td>
|
|
<td>{{ tombstone.removed|date:"Y-m-d H:i" }}</td>
|
|
<td>{{ tombstone.expires|date:"Y-m-d H:i" }}</td>
|
|
<td>
|
|
<div class="float-end btn-group">
|
|
<a class="btn btn-danger" href="{% url 'admin:tombstone_delete' tombstone.id %}" title="{% trans "Delete" %}">
|
|
{% bs_icon 'x' %}
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
{% block script %}
|
|
<script src="{% static 'js/table_filter.js' %}"></script>
|
|
{% endblock script %}
|