mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #8692: Restore misisng tabs under cluster, VM views
This commit is contained in:
@ -25,11 +25,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block tab_items %}
|
||||
<li role="presentation" class="nav-item">
|
||||
<a href="{{ object.get_absolute_url }}" class="nav-link{% if not active_tab %} active{% endif %}">Cluster</a>
|
||||
</li>
|
||||
|
||||
{% block extra_tabs %}
|
||||
{% with virtualmachine_count=object.virtual_machines.count %}
|
||||
<li role="presentation" class="nav-item">
|
||||
<a href="{% url 'virtualization:cluster_virtualmachines' pk=object.pk %}" class="nav-link{% if active_tab == 'virtual-machines' %} active{% endif %}">
|
||||
@ -37,7 +33,6 @@
|
||||
</a>
|
||||
</li>
|
||||
{% endwith %}
|
||||
|
||||
{% with device_count=object.devices.count %}
|
||||
<li role="presentation" class="nav-item">
|
||||
<a href="{% url 'virtualization:cluster_devices' pk=object.pk %}" class="nav-link{% if active_tab == 'devices' %} active{% endif %}">
|
||||
|
@ -16,10 +16,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block tab_items %}
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">Virtual Machine</a>
|
||||
</li>
|
||||
{% block extra_tabs %}
|
||||
{% with interface_count=object.interfaces.count %}
|
||||
{% if interface_count %}
|
||||
<li class="nav-item" role="presentation">
|
||||
|
Reference in New Issue
Block a user