Skip to content

Commit 3028f26

Browse files
committed
Closes #16943: Expand navigation breadcrumbs on job view to include parent object
1 parent 11cadf3 commit 3028f26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

netbox/templates/core/job.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
{% load perms %}
55
{% load i18n %}
66

7+
{% block breadcrumbs %}
8+
{{ block.super }}
9+
<li class="breadcrumb-item">
10+
<a href="{% url 'core:job_list' %}?object_type={{ object.object_type_id }}">{{ object.object|meta:"verbose_name_plural"|bettertitle }}</a>
11+
</li>
12+
{% with parent_jobs_viewname=object.object|viewname:"jobs" %}
13+
<li class="breadcrumb-item">
14+
<a href="{% url parent_jobs_viewname pk=object.object.pk %}">{{ object.object }}</a>
15+
</li>
16+
{% endwith %}
17+
{% endblock breadcrumbs %}
18+
719
{% block control-buttons %}
820
{% if request.user|can_delete:object %}
921
{% delete_button object %}

0 commit comments

Comments
 (0)