Clean up module template

This commit is contained in:
jeremystretch
2022-03-23 14:00:56 -04:00
parent e700f084b9
commit 99180742cc

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>