mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
now it's readable
This commit is contained in:
parent
f5089333d3
commit
aa919033e5
@ -184,17 +184,16 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
{% with ipaddresses=iface.ip_addresses.all %}
|
{% with ipaddresses=iface.ip_addresses.all %}
|
||||||
{% if ipaddresses %}
|
{% if ipaddresses %}
|
||||||
<tr>
|
<tr>
|
||||||
{# Placeholder#}
|
{# Placeholder#}
|
||||||
{% if perms.dcim.change_interface or perms.dcim.delete_interface %}
|
{% if perms.dcim.change_interface or perms.dcim.delete_interface %}
|
||||||
<td class="ipaddresses"></td>
|
<td class="ipaddresses"></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# IP addresses table#}
|
{# IP addresses table #}
|
||||||
<td class="ipaddresses" colspan="9" style="padding: 0">
|
<td colspan="9" style="padding: 0">
|
||||||
<table class="table table-condensed interface-ips">
|
<table class="table table-condensed interface-ips">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-muted">
|
<tr class="text-muted">
|
||||||
@ -208,12 +207,12 @@
|
|||||||
{% for ip in iface.ip_addresses.all %}
|
{% for ip in iface.ip_addresses.all %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
{# IP address#}
|
{# IP address #}
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'ipam:ipaddress' pk=ip.pk %}">{{ ip }}</a>
|
<a href="{% url 'ipam:ipaddress' pk=ip.pk %}">{{ ip }}</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{# Primary/status/role#}
|
{# Primary/status/role #}
|
||||||
<td>
|
<td>
|
||||||
{% if device.primary_ip4 == ip or device.primary_ip6 == ip %}
|
{% if device.primary_ip4 == ip or device.primary_ip6 == ip %}
|
||||||
<span class="label label-success">Primary</span>
|
<span class="label label-success">Primary</span>
|
||||||
@ -224,7 +223,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{#VRF#}
|
{# VRF #}
|
||||||
<td>
|
<td>
|
||||||
{% if ip.vrf %}
|
{% if ip.vrf %}
|
||||||
<a href="{% url 'ipam:vrf' pk=ip.vrf.pk %}" title="{{ ip.vrf.rd }}">{{ ip.vrf.name }}</a>
|
<a href="{% url 'ipam:vrf' pk=ip.vrf.pk %}" title="{{ ip.vrf.rd }}">{{ ip.vrf.name }}</a>
|
||||||
@ -233,7 +232,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{#Description#}
|
{# Description #}
|
||||||
<td>
|
<td>
|
||||||
{% if ip.description %}
|
{% if ip.description %}
|
||||||
{{ ip.description }}
|
{{ ip.description }}
|
||||||
@ -242,7 +241,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{#Buttons#}
|
{# Buttons #}
|
||||||
<td class="text-right text-nowrap noprint">
|
<td class="text-right text-nowrap noprint">
|
||||||
{% if perms.ipam.change_ipaddress %}
|
{% if perms.ipam.change_ipaddress %}
|
||||||
<a href="{% url 'ipam:ipaddress_edit' pk=ip.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-info btn-xs">
|
<a href="{% url 'ipam:ipaddress_edit' pk=ip.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-info btn-xs">
|
||||||
@ -309,29 +308,33 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{#Tagged VLANs#}
|
{# Tagged VLANs #}
|
||||||
|
|
||||||
{% if iface.tagged_vlans.all %}
|
{% if iface.tagged_vlans.all %}
|
||||||
{% for tag in iface.tagged_vlans.all %}
|
{% for tag in iface.tagged_vlans.all %}
|
||||||
<tr>
|
<tr>
|
||||||
{#VLAN ID#}
|
{# VLAN ID #}
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'ipam:vlan' tag.id %}">{{ tag.vid }}</a>
|
<a href="{% url 'ipam:vlan' tag.id %}">{{ tag.vid }}</a>
|
||||||
</td>
|
</td>
|
||||||
{#VLAN tag#}
|
|
||||||
|
{# VLAN tag #}
|
||||||
<td>
|
<td>
|
||||||
<span class="text-success">
|
<span class="text-success">
|
||||||
<li class="fa fa-check"></li>
|
<li class="fa fa-check"></li>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
{#VLAN status#}
|
|
||||||
|
{# VLAN status #}
|
||||||
<td>
|
<td>
|
||||||
<span class="label label-primary"
|
<span class="label label-primary"
|
||||||
style="text-transform: capitalize">{{ tag.status }}</span>
|
style="text-transform: capitalize">{{ tag.status }}</span>
|
||||||
</td>
|
</td>
|
||||||
{#VLAN name#}
|
|
||||||
|
{# VLAN name #}
|
||||||
<td>{{ tag.name }}</td>
|
<td>{{ tag.name }}</td>
|
||||||
{#VLAN description#}
|
|
||||||
|
{# VLAN description #}
|
||||||
<td>{{ tag.description }}</td>
|
<td>{{ tag.description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user