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

Introduced a placeholder template filter

This commit is contained in:
Jeremy Stretch
2018-11-05 13:00:46 -05:00
parent 53b6a07a41
commit 045856c9ac
23 changed files with 75 additions and 301 deletions

View File

@@ -79,29 +79,17 @@
<span class="text-muted">None</span>
{% endfor %}
{% else %}
<span class="text-muted">N/A</span>
<span class="text-muted">&mdash;</span>
{% endif %}
</td>
</tr>
<tr>
<td>Cross-Connect</td>
<td>
{% if termination.xconnect_id %}
{{ termination.xconnect_id }}
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
<td>{{ termination.xconnect_id|placeholder }}</td>
</tr>
<tr>
<td>Patch Panel/Port</td>
<td>
{% if termination.pp_info %}
{{ termination.pp_info }}
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
<td>{{ termination.pp_info|placeholder }}</td>
</tr>
</table>
{% else %}