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-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-5">
|
2021-04-13 21:51:12 -07:00
|
|
|
<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>
|
|
|
|
<td><a href="{{ object.type.get_absolute_url }}">{{ object.type }}</a></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Group</th>
|
|
|
|
<td>
|
|
|
|
{% if object.group %}
|
|
|
|
<a href="{{ object.group.get_absolute_url }}">{{ object.group }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Tenant</th>
|
|
|
|
<td>
|
|
|
|
{% if object.tenant %}
|
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Site</th>
|
|
|
|
<td>
|
|
|
|
{% if object.site %}
|
|
|
|
<a href="{{ object.site.get_absolute_url }}">{{ object.site }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</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>
|
|
|
|
</div>
|
2020-11-19 13:53:37 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='virtualization:cluster_list' %}
|
2021-04-13 21:51:12 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Comments
|
|
|
|
</h5>
|
|
|
|
<div class="card-body rendered-markdown">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.comments %}
|
|
|
|
{{ object.comments|render_markdown }}
|
2017-08-04 17:02:52 -04:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_left_page object %}
|
2017-08-04 17:02:52 -04:00
|
|
|
</div>
|
|
|
|
</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 %}
|