2021-03-29 14:55:17 -04:00
|
|
|
{% extends 'virtualization/cluster/base.html' %}
|
2017-08-04 17:02:52 -04:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2017-08-04 17:02:52 -04:00
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block content %}
|
2017-08-04 17:02:52 -04:00
|
|
|
<div class="row">
|
2021-07-21 11:20:35 -04:00
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Cluster
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td>{{ object.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Type</th>
|
2022-03-22 14:51:20 -04:00
|
|
|
<td>{{ object.type|linkify }}</td>
|
2021-07-21 11:20:35 -04:00
|
|
|
</tr>
|
2022-10-25 16:38:32 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Status</th>
|
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
|
|
|
</tr>
|
2022-11-04 08:28:09 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
2021-07-21 11:20:35 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Group</th>
|
2022-10-04 15:46:55 -04:00
|
|
|
<td>{{ object.group|linkify|placeholder }}</td>
|
2021-07-21 11:20:35 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Tenant</th>
|
2022-03-22 15:29:05 -04:00
|
|
|
<td>
|
|
|
|
{% if object.tenant.group %}
|
|
|
|
{{ object.tenant.group|linkify }} /
|
|
|
|
{% endif %}
|
|
|
|
{{ object.tenant|linkify|placeholder }}
|
|
|
|
</td>
|
2021-07-21 11:20:35 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Site</th>
|
2022-10-04 15:46:55 -04:00
|
|
|
<td>{{ object.site|linkify|placeholder }}</td>
|
2021-07-21 11:20:35 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Virtual Machines</th>
|
|
|
|
<td><a href="{% url 'virtualization:virtualmachine_list' %}?cluster_id={{ object.pk }}">{{ object.virtual_machines.count }}</a></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2017-08-04 17:02:52 -04:00
|
|
|
</div>
|
2021-07-21 11:20:35 -04:00
|
|
|
</div>
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/comments.html' %}
|
2021-07-21 11:20:35 -04:00
|
|
|
{% plugin_left_page object %}
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
2022-12-19 14:57:35 +01:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">Allocated Resources</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row"><i class="mdi mdi-gauge"></i> Virtual CPUs</th>
|
|
|
|
<td>{{ vcpus_sum|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row"><i class="mdi mdi-chip"></i> Memory</th>
|
|
|
|
<td>
|
|
|
|
{% if memory_sum %}
|
|
|
|
{{ memory_sum|humanize_megabytes }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row"><i class="mdi mdi-harddisk"></i> Disk Space</th>
|
|
|
|
<td>
|
|
|
|
{% if disk_sum %}
|
|
|
|
{{ disk_sum }} GB
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
2021-10-21 11:23:31 -04:00
|
|
|
{% include 'inc/panels/tags.html' %}
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/contacts.html' %}
|
2021-07-21 11:20:35 -04:00
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
2017-08-04 17:02:52 -04:00
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-03-29 14:55:17 -04:00
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2017-08-04 17:02:52 -04:00
|
|
|
{% endblock %}
|