Skip to content

Commit 69aaf28

Browse files
committed
Closes #6955: Include type, ID, and slug on object view
1 parent b806220 commit 69aaf28

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/release-notes/version-3.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Enhancements
66

77
* [#6850](https://github.com/netbox-community/netbox/issues/6850) - Default to current user when creating journal entries via REST API
8+
* [#6955](https://github.com/netbox-community/netbox/issues/6955) - Include type, ID, and slug on object view
89
* [#7462](https://github.com/netbox-community/netbox/issues/7462) - Include count of assigned virtual machines under platform view
910

1011
### Bug Fixes

netbox/templates/generic/object.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
{% block header %}
99
{# Breadcrumbs #}
1010
<nav class="breadcrumb-container px-3" aria-label="breadcrumb">
11+
<div class="float-end">
12+
<code class="text-muted" title="Object type and ID">
13+
{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}
14+
{% if object.slug %}({{ object.slug }}){% endif %}
15+
</code>
16+
</div>
1117
<ol class="breadcrumb">
1218
{% block breadcrumbs %}
1319
<li class="breadcrumb-item"><a href="{% url object|viewname:'list' %}">{{ object|meta:'verbose_name_plural'|bettertitle }}</a></li>

0 commit comments

Comments
 (0)