mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
fix prefix layout
This commit is contained in:
parent
f65f924011
commit
9e51ddd8d8
@ -31,40 +31,38 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block tab_items %}
|
||||||
{% block content %}
|
<li role="presentation" class="nav-item">
|
||||||
{% block tabs %}
|
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
|
||||||
<li role="presentation" class="nav-item">
|
|
||||||
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'ipam:prefix' pk=object.pk %}">
|
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'ipam:prefix' pk=object.pk %}">
|
||||||
Prefix
|
Prefix
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" class="nav-item">
|
<li role="presentation" class="nav-item">
|
||||||
<a class="nav-link{% if active_tab %} active{% endif %}" href="{% url 'ipam:prefix_prefixes' pk=object.pk %}">
|
<a class="nav-link{% if active_tab %} active{% endif %}" href="{% url 'ipam:prefix_prefixes' pk=object.pk %}">
|
||||||
Child Prefixes <span class="badge bg-primary">{{ object.get_child_prefixes.count }}</span>
|
Child Prefixes <span class="badge bg-primary">{{ object.get_child_prefixes.count }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% if perms.ipam.view_ipaddress and object.status != 'container' %}
|
{% if perms.ipam.view_ipaddress and object.status != 'container' %}
|
||||||
<li role="presentation" class="nav-item">
|
<li role="presentation" class="nav-item">
|
||||||
<a class="nav-link{% if active_tab %} active{% endif %}" href="{% url 'ipam:prefix_ipaddresses' pk=object.pk %}">
|
<a class="nav-link{% if active_tab %} active{% endif %}" href="{% url 'ipam:prefix_ipaddresses' pk=object.pk %}">
|
||||||
IP Addresses <span class="badge bg-primary">{{ object.get_child_ips.count }}</span>
|
IP Addresses <span class="badge bg-primary">{{ object.get_child_ips.count }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.extras.view_objectchange %}
|
{% if perms.extras.view_objectchange %}
|
||||||
<li role="presentation" class="nav-item">
|
<li role="presentation" class="nav-item">
|
||||||
<a
|
<a
|
||||||
class="nav-link{% if active_tab == 'changelog' %} active{% endif %}"
|
class="nav-link{% if active_tab == 'changelog' %} active{% endif %}"
|
||||||
href="{% url 'ipam:prefix_changelog' pk=object.pk %}"
|
href="{% url 'ipam:prefix_changelog' pk=object.pk %}"
|
||||||
>
|
>
|
||||||
Change Log
|
Change Log
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="row">
|
{% block content %}
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
@ -177,15 +175,15 @@
|
|||||||
{% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' %}
|
{% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' %}
|
||||||
{% plugin_right_page object %}
|
{% plugin_right_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row my-3">
|
<div class="row my-3">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:prefix_list' %}
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:prefix_list' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{% plugin_full_width_page object %}
|
{% plugin_full_width_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user