Skip to content

Commit c172050

Browse files
committed
Fixes #7584: Fix alignment of object identifier under object view
1 parent 5c338a9 commit c172050

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

docs/release-notes/version-3.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* [#7534](https://github.com/netbox-community/netbox/issues/7534) - Avoid exception when utilizing "create and add another" twice in succession
1111
* [#7544](https://github.com/netbox-community/netbox/issues/7544) - Fix multi-value filtering of custom field objects
1212
* [#7545](https://github.com/netbox-community/netbox/issues/7545) - Fix incorrect display of update/delete events for webhooks
13-
* [#7556](https://github.com/netbox-community/netbox/issues/7556) - Fix display of New Version
13+
* [#7556](https://github.com/netbox-community/netbox/issues/7556) - Fix display of version when new release is available
14+
* [#7584](https://github.com/netbox-community/netbox/issues/7584) - Fix alignment of object identifier under object view
1415

1516
---
1617

netbox/templates/generic/object.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,25 @@
66
{% load plugins %}
77

88
{% block header %}
9-
{# Breadcrumbs #}
10-
<nav class="breadcrumb-container px-3" aria-label="breadcrumb">
11-
<div class="float-end">
9+
<div class="d-flex justify-content-between align-items-center">
10+
{# Breadcrumbs #}
11+
<nav class="breadcrumb-container px-3" aria-label="breadcrumb">
12+
<ol class="breadcrumb">
13+
{% block breadcrumbs %}
14+
<li class="breadcrumb-item"><a href="{% url object|viewname:'list' %}">{{ object|meta:'verbose_name_plural'|bettertitle }}</a></li>
15+
{% endblock breadcrumbs %}
16+
</ol>
17+
</nav>
18+
{# Object identifier #}
19+
<div class="float-end px-3">
1220
<code class="text-muted">
1321
{% block object_identifier %}
1422
{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}
1523
{% if object.slug %}({{ object.slug }}){% endif %}
1624
{% endblock object_identifier %}
1725
</code>
1826
</div>
19-
<ol class="breadcrumb">
20-
{% block breadcrumbs %}
21-
<li class="breadcrumb-item"><a href="{% url object|viewname:'list' %}">{{ object|meta:'verbose_name_plural'|bettertitle }}</a></li>
22-
{% endblock breadcrumbs %}
23-
</ol>
24-
</nav>
27+
</div>
2528
{{ block.super }}
2629
{% endblock %}
2730

0 commit comments

Comments
 (0)