mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Closes #16943: Expand navigation breadcrumbs on job view to include parent object
This commit is contained in:
parent
11cadf3a8a
commit
3028f262cc
@ -4,6 +4,18 @@
|
|||||||
{% load perms %}
|
{% load perms %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block breadcrumbs %}
|
||||||
|
{{ block.super }}
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
<a href="{% url 'core:job_list' %}?object_type={{ object.object_type_id }}">{{ object.object|meta:"verbose_name_plural"|bettertitle }}</a>
|
||||||
|
</li>
|
||||||
|
{% with parent_jobs_viewname=object.object|viewname:"jobs" %}
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
<a href="{% url parent_jobs_viewname pk=object.object.pk %}">{{ object.object }}</a>
|
||||||
|
</li>
|
||||||
|
{% endwith %}
|
||||||
|
{% endblock breadcrumbs %}
|
||||||
|
|
||||||
{% block control-buttons %}
|
{% block control-buttons %}
|
||||||
{% if request.user|can_delete:object %}
|
{% if request.user|can_delete:object %}
|
||||||
{% delete_button object %}
|
{% delete_button object %}
|
||||||
|
Loading…
Reference in New Issue
Block a user