Standardize object breadcrumbs

This commit is contained in:
jeremystretch
2021-07-20 12:14:01 -04:00
parent d938b6621d
commit 856956afce
59 changed files with 72 additions and 253 deletions

View File

@@ -3,11 +3,11 @@
{% load plugins %}
{% block breadcrumbs %}
<li class="breadcrumb-item"><a href="{% url 'ipam:vlangroup_list' %}">VLAN Groups</a></li>
{{ block.super }}
{% if object.scope %}
{# TODO: This should link to a filtered list of VLANGroups #}
<li class="breadcrumb-item"><a href="{{ object.scope.get_absolute_url }}">{{ object.scope }}</a></li>
{% endif %}
<li class="breadcrumb-item">{{ object }}</li>
{% endblock %}
{% block buttons %}