mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(computes): the Computes list on Bootstrap's cards, badges, bars and menus
- Totals above the list: hosts connected of all, VMs running of all, vCPUs given on the CPUs, memory given of the memory of the hosts the panel reads, as cards; the connected count is red while a host is not. - A host's name links its overview; its state is a Connected or Not connected badge (the dot goes), beside a badge of how the panel reaches it (TCP, SSH, TLS, Socket); its address in monospace. - A VMs column: the host's VMs, linked to its Instances, and how many run. - The vCPUs have a bar like the memory's: running VMs' and shut-off VMs' vCPUs against the CPUs, amber over 2:1 and red over 4:1 as the ratio is; the overview's vCPU card shares it. - The three coloured buttons of each row are one menu: Overview, Edit connection and Remove from panel (its popper fixed, as the table's scrolling box would cut it off). - The four green add buttons are one "Add host" menu that says what each kind of connection is. - The table is table-hover; a host the panel cannot reach has a table-warning row.
This commit is contained in:
parent
0207514b52
commit
025bb16557
10 changed files with 207 additions and 88 deletions
|
|
@ -1,11 +1,25 @@
|
|||
{% load i18n %}
|
||||
{% load django_bootstrap5 %}
|
||||
{% load bootstrap_icons %}
|
||||
|
||||
<div class="btn-group float-end mt-1" role="group" aria-label="Add host button group">
|
||||
<a href="{% url 'add_tcp_host' %}" class="btn btn-success">{% trans "TCP" %}</a>
|
||||
<a href="{% url 'add_ssh_host' %}" class="btn btn-success">{% trans "SSH" %}</a>
|
||||
<a href="{% url 'add_tls_host' %}" class="btn btn-success">{% trans "TLS" %}</a>
|
||||
<a href="{% url 'add_socket_host' %}" class="btn btn-success">{% trans "Local" %}</a>
|
||||
<a href="#" class="btn btn-success disabled" title="{% trans "Add new host" %}">{% bs_icon "plus-circle-fill" %}</a>
|
||||
<div class="dropdown float-end mt-1 ms-1">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
{% bs_icon 'plus-lg' %} {% trans "Add host" %}
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end shadow" style="min-width: 18rem;">
|
||||
<li><a class="dropdown-item" href="{% url 'add_tcp_host' %}">
|
||||
<div class="fw-semibold">TCP</div>
|
||||
<div class="small text-body-secondary text-wrap">{% trans "libvirt over TCP, with a SASL login" %}</div>
|
||||
</a></li>
|
||||
<li><a class="dropdown-item" href="{% url 'add_ssh_host' %}">
|
||||
<div class="fw-semibold">SSH</div>
|
||||
<div class="small text-body-secondary text-wrap">{% trans "libvirt over SSH, with the panel's SSH key" %}</div>
|
||||
</a></li>
|
||||
<li><a class="dropdown-item" href="{% url 'add_tls_host' %}">
|
||||
<div class="fw-semibold">TLS</div>
|
||||
<div class="small text-body-secondary text-wrap">{% trans "libvirt over TLS, with certificates" %}</div>
|
||||
</a></li>
|
||||
<li><a class="dropdown-item" href="{% url 'add_socket_host' %}">
|
||||
<div class="fw-semibold">{% trans "Local" %}</div>
|
||||
<div class="small text-body-secondary text-wrap">{% trans "the libvirt of the host the panel runs on, by its socket" %}</div>
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue