Fix job details view

This commit is contained in:
Alexander Haase 2024-08-07 21:52:47 +02:00 committed by Jeremy Stretch
parent 8b91fb8d2d
commit c6c0ab2828

View File

@ -6,6 +6,7 @@
{% block breadcrumbs %} {% block breadcrumbs %}
{{ block.super }} {{ block.super }}
{% if object.object %}
<li class="breadcrumb-item"> <li class="breadcrumb-item">
<a href="{% url 'core:job_list' %}?object_type={{ object.object_type_id }}">{{ object.object|meta:"verbose_name_plural"|bettertitle }}</a> <a href="{% url 'core:job_list' %}?object_type={{ object.object_type_id }}">{{ object.object|meta:"verbose_name_plural"|bettertitle }}</a>
</li> </li>
@ -14,6 +15,11 @@
<a href="{% url parent_jobs_viewname pk=object.object.pk %}">{{ object.object }}</a> <a href="{% url parent_jobs_viewname pk=object.object.pk %}">{{ object.object }}</a>
</li> </li>
{% endwith %} {% endwith %}
{% else %}
<li class="breadcrumb-item">
<a href="{% url 'core:job_list' %}?name={{ object.name|urlencode }}">{{ object.name }}</a>
</li>
{% endif %}
{% endblock breadcrumbs %} {% endblock breadcrumbs %}
{% block control-buttons %} {% block control-buttons %}