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

Changed VRF and VLAN views to use PrefixBriefTable

This commit is contained in:
Jeremy Stretch
2016-07-29 13:03:44 -04:00
parent 38aee33df0
commit 75c3e62ca8
4 changed files with 7 additions and 42 deletions

View File

@@ -118,26 +118,7 @@
<div class="panel-heading">
<strong>Prefixes</strong>
</div>
{% if prefixes %}
<table class="table table-hover panel-body">
{% for p in prefixes %}
<tr>
<td>
<a href="{% url 'ipam:prefix' pk=p.pk %}">{{ p }}</a>
</td>
<td>
{% if p.site %}
<a href="{% url 'dcim:site' slug=p.site.slug %}">{{ p.site }}</a>
{% endif %}
</td>
<td>{{ p.get_status_display }}</td>
<td>{{ p.role }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<div class="panel-body text-muted">None</div>
{% endif %}
{% render_table prefix_table %}
</div>
</div>
</div>

View File

@@ -96,26 +96,7 @@
<div class="panel-heading">
<strong>Prefixes</strong>
</div>
{% if prefixes %}
<table class="table table-hover panel-body">
{% for p in prefixes %}
<tr>
<td>
<a href="{% url 'ipam:prefix' pk=p.pk %}">{{ p }}</a>
</td>
<td>
{% if p.site %}
<a href="{% url 'dcim:site' slug=p.site.slug %}">{{ p.site }}</a>
{% endif %}
</td>
<td>{{ p.status }}</td>
<td>{{ p.role }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<div class="panel-body text-muted">None</div>
{% endif %}
{% render_table prefix_table %}
</div>
</div>
</div>