1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up module template

This commit is contained in:
jeremystretch
2022-03-23 14:00:56 -04:00
parent fdc0036872
commit 3b69f07b86

View File

@ -90,7 +90,7 @@
{% if component_count %}
<a href="{% url 'dcim:interface_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -102,7 +102,7 @@
{% if component_count %}
<a href="{% url 'dcim:consoleport_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -114,7 +114,7 @@
{% if component_count %}
<a href="{% url 'dcim:consoleserverport_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -126,7 +126,7 @@
{% if component_count %}
<a href="{% url 'dcim:powerport_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -138,7 +138,7 @@
{% if component_count %}
<a href="{% url 'dcim:poweroutlet_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -150,7 +150,7 @@
{% if component_count %}
<a href="{% url 'dcim:frontport_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>
@ -162,7 +162,7 @@
{% if component_count %}
<a href="{% url 'dcim:rearport_list' %}?module_id={{ object.pk }}">{{ component_count }}</a>
{% else %}
None
{{ ''|placeholder }}
{% endif %}
{% endwith %}
</td>