From 7a8cebcd25e2b62618eace7b08396e44fe974815 Mon Sep 17 00:00:00 2001 From: Alexander Haase Date: Wed, 7 Aug 2024 21:52:47 +0200 Subject: [PATCH] Fix job details view --- netbox/templates/core/job.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/netbox/templates/core/job.html b/netbox/templates/core/job.html index 1e90283deab..1144dd8df73 100644 --- a/netbox/templates/core/job.html +++ b/netbox/templates/core/job.html @@ -6,14 +6,20 @@ {% block breadcrumbs %} {{ block.super }} - - {% with parent_jobs_viewname=object.object|viewname:"jobs" %} + {% if object.object %} - {% endwith %} + {% with parent_jobs_viewname=object.object|viewname:"jobs" %} + + {% endwith %} + {% else %} + + {% endif %} {% endblock breadcrumbs %} {% block control-buttons %}