Skip to content

Commit e499b01

Browse files
committed
Closes #10604: Remove unused extra_tabs block from object.html generic template
1 parent 24e26b9 commit e499b01

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

docs/plugins/development/templates.md

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ This template is used by the `ObjectView` generic view to display a single objec
7474
| `breadcrumbs` | - | Breadcrumb list items (HTML `<li>` elements) |
7575
| `object_identifier` | - | A unique identifier (string) for the object |
7676
| `extra_controls` | - | Additional action buttons to display |
77-
| `extra_tabs` | - | Additional tabs to include |
7877

7978
#### Context
8079

docs/release-notes/version-3.5.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# NetBox v3.4
1+
# NetBox v3.5
22

33
## v3.5.0 (FUTURE)
44

55
### Other Changes
66

7+
* [#10604](https://github.com/netbox-community/netbox/issues/10604) - Remove unused `extra_tabs` block from `object.html` generic template
78
* [#10923](https://github.com/netbox-community/netbox/issues/10923) - Remove unused `NetBoxModelCSVForm` class (replaced by `NetBoxModelImportForm`)

netbox/templates/generic/object.html

-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
breadcrumbs: Breadcrumb list items (HTML <li> elements)
1212
object_identifier: Unique identifier for the object
1313
extra_controls: Additional action buttons to display
14-
extra_tabs: Additional tabs to include
1514
content: Page content
1615

1716
Context:
@@ -84,9 +83,6 @@
8483
<a class="nav-link{% if not tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
8584
</li>
8685

87-
{# Include any extra tabs passed by the view #}
88-
{% block extra_tabs %}{% endblock %}
89-
9086
{# Include tabs for registered model views #}
9187
{% model_view_tabs object %}
9288
</ul>

0 commit comments

Comments
 (0)