diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 308e9a5c5..9fc264eac 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -1,7 +1,7 @@ {% extends '_base.html' %} {% load helpers %} -{% block title %}{{ circuit.provider }} Circuit {{ circuit.cid }}{% endblock %} +{% block title %}{{ circuit.provider }} - {{ circuit.cid }}{% endblock %} {% block content %}
@@ -39,7 +39,7 @@ {% endif %}
-

{{ circuit.provider }} Circuit {{ circuit.cid }}

+

{{ circuit.provider }} - {{ circuit.cid }}

@@ -66,6 +66,16 @@ {% if circuit.tenant %} {{ circuit.tenant }} + {% else %} + None + {% endif %} + + + + Install Date + + {% if circuit.install_date %} + {{ circuit.install_date }} {% else %} N/A {% endif %} @@ -73,11 +83,23 @@ Port Speed - {{ circuit.port_speed_human }} + + {% if circuit.port_speed %} + {{ circuit.port_speed_human }} + {% else %} + N/A + {% endif %} + Commit Rate - {% if circuit.commit_rate %}{{ circuit.commit_rate_human }}{% else %}N/A{% endif %} + + {% if circuit.commit_speed %} + {{ circuit.commit_speed_human }} + {% else %} + N/A + {% endif %} + Created @@ -112,16 +134,6 @@ {% endif %} - - Install Date - - {% if circuit.install_date %} - {{ circuit.install_date }} - {% else %} - N/A - {% endif %} - - Cross-Connect @@ -149,7 +161,7 @@ Comments
- {% if circuit.comments %} + {% if circuit.comments %} {{ circuit.comments|gfm }} {% else %} None diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index 3edb3e02d..7b8a4a3a5 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -55,25 +55,53 @@ - + - + - + - + @@ -90,7 +118,7 @@ Comments
- {% if provider.comments %} + {% if provider.comments %} {{ provider.comments|gfm }} {% else %} None diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 2a0a7dee1..a25944262 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -65,7 +65,7 @@ {% if device.serial %} {{ device.serial }} {% else %} - Not defined + N/A {% endif %}
@@ -96,7 +96,7 @@ {% if device.platform %} {{ device.platform }} {% else %} - Not assigned + None {% endif %} @@ -121,7 +121,7 @@ (NAT: {{ device.primary_ip4.nat_outside.address.ip }}) {% endif %} {% else %} - Not defined + N/A {% endif %} @@ -136,7 +136,7 @@ (NAT: {{ device.primary_ip6.nat_outside.address.ip }}) {% endif %} {% else %} - Not defined + N/A {% endif %} @@ -267,7 +267,7 @@ Comments
- {% if device.comments %} + {% if device.comments %} {{ device.comments|gfm }} {% else %} None diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index a2074173a..a265f04b5 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -82,7 +82,7 @@ {% if rack.facility_id %} {{ rack.facility_id }} {% else %} - None + N/A {% endif %} @@ -156,7 +156,7 @@ Comments
- {% if rack.comments %} + {% if rack.comments %} {{ rack.comments|gfm }} {% else %} None diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index 9eb69ef43..3464de34e 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -48,7 +48,7 @@

{{ site.name }}

-
+
Site @@ -66,11 +66,23 @@
- + - + @@ -81,8 +93,10 @@ Map it + {{ site.physical_address|linebreaksbr }} + {% else %} + N/A {% endif %} - {{ site.physical_address|linebreaksbr }} @@ -91,7 +105,7 @@ {% if site.shipping_address %} {{ site.shipping_address|linebreaksbr }} {% else %} - See physical address + N/A {% endif %} @@ -110,7 +124,7 @@ Comments
- {% if site.comments %} + {% if site.comments %} {{ site.comments|gfm }} {% else %} None @@ -118,43 +132,33 @@
-
+
Stats
-
ASN{{ provider.asn }} + {% if provider.asn %} + {{ provider.asn }} + {% else %} + N/A + {% endif %} +
Account{{ provider.account }} + {% if provider.account %} + {{ provider.account }} + {% else %} + N/A + {% endif %} +
Customer Portal - {{ provider.portal_url }} + {% if provider.portal_url %} + {{ provider.portal_url }} + {% else %} + N/A + {% endif %}
NOC Contact{{ provider.noc_contact|linebreaksbr }} + {% if provider.noc_contact %} + {{ provider.noc_contact|linebreaksbr }} + {% else %} + N/A + {% endif %} +
Admin Contact{{ provider.admin_contact|linebreaksbr }} + {% if provider.admin_contact %} + {{ provider.admin_contact|linebreaksbr }} + {% else %} + N/A + {% endif %} +
Created
Facility{{ site.facility }} + {% if site.facility %} + {{ site.facility }} + {% else %} + N/A + {% endif %} +
AS Number{{ site.asn }} + {% if site.asn %} + {{ site.asn }} + {% else %} + N/A + {% endif %} +
Physical Address
- - - - - - - - - - - - - - - - - - - - -
Racks - {{ stats.rack_count }} -
Devices - {{ stats.device_count }} -
Prefixes - {{ stats.prefix_count }} -
VLANs - {{ stats.vlan_count }} -
Circuits - {{ stats.circuit_count }} -
+
+ +
+

{{ stats.device_count }}

+

Devices

+
+
+

{{ stats.prefix_count }}

+

Prefixes

+
+ +
+

{{ stats.circuit_count }}

+

Circuits

+
+
diff --git a/netbox/templates/ipam/aggregate.html b/netbox/templates/ipam/aggregate.html index 31e9c2709..add1e78fc 100644 --- a/netbox/templates/ipam/aggregate.html +++ b/netbox/templates/ipam/aggregate.html @@ -63,17 +63,17 @@ {% if aggregate.date_added %} {{ aggregate.date_added }} {% else %} - Not defined + N/A {% endif %} Description - {% if aggregate.description %} + {% if aggregate.description %} {{ aggregate.description }} {% else %} - None + N/A {% endif %} diff --git a/netbox/templates/ipam/ipaddress.html b/netbox/templates/ipam/ipaddress.html index 7343d2677..73566753d 100644 --- a/netbox/templates/ipam/ipaddress.html +++ b/netbox/templates/ipam/ipaddress.html @@ -70,7 +70,7 @@ {{ ipaddress.tenant }} {% elif ipaddress.vrf.tenant %} {{ ipaddress.vrf.tenant }} - + {% else %} None {% endif %} @@ -79,10 +79,10 @@ Description - {% if ipaddress.description %} + {% if ipaddress.description %} {{ ipaddress.description }} {% else %} - None + N/A {% endif %} diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index 0ba97eeb0..8dd442400 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -33,7 +33,7 @@ {{ prefix.tenant }} {% elif prefix.vrf.tenant %} {{ prefix.vrf.tenant }} - + {% else %} None {% endif %} @@ -55,7 +55,7 @@ {% if prefix.site %} {{ prefix.site }} {% else %} - Not assigned + None {% endif %} @@ -65,7 +65,7 @@ {% if prefix.vlan %} {{ prefix.vlan.display_name }} {% else %} - Not assigned + None {% endif %} @@ -77,15 +77,21 @@ Role - {{ prefix.role }} + + {% if prefix.role %} + {{ prefix.role }} + {% else %} + None + {% endif %} + Description - {% if prefix.description %} + {% if prefix.description %} {{ prefix.description }} {% else %} - None + N/A {% endif %} diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html index 55aab7b8a..a3198722c 100644 --- a/netbox/templates/ipam/vlan.html +++ b/netbox/templates/ipam/vlan.html @@ -90,7 +90,13 @@ Role - {{ vlan.role }} + + {% if vlan.role %} + {{ vlan.role }} + {% else %} + None + {% endif %} + Description @@ -98,7 +104,7 @@ {% if vlan.description %} {{ vlan.description }} {% else %} - None + N/A {% endif %} diff --git a/netbox/templates/ipam/vrf.html b/netbox/templates/ipam/vrf.html index 57fef8d43..e6a208b96 100644 --- a/netbox/templates/ipam/vrf.html +++ b/netbox/templates/ipam/vrf.html @@ -61,7 +61,7 @@ - Enforce Uniqueness + Unique IP Space {% if vrf.enforce_unique %} @@ -73,10 +73,10 @@ Description - {% if vrf.description %} + {% if vrf.description %} {{ vrf.description }} {% else %} - None + N/A {% endif %} diff --git a/netbox/templates/tenancy/tenant.html b/netbox/templates/tenancy/tenant.html index fdeae4af7..eee92880e 100644 --- a/netbox/templates/tenancy/tenant.html +++ b/netbox/templates/tenancy/tenant.html @@ -78,7 +78,7 @@ Comments
- {% if tenant.comments %} + {% if tenant.comments %} {{ tenant.comments|gfm }} {% else %} None @@ -92,37 +92,35 @@ Stats