Просмотр исходного кода

Closes #10604: Remove unused extra_tabs block from object.html generic template

jeremystretch 3 лет назад
Родитель
Сommit
2381317eb3

+ 0 - 1
docs/plugins/development/templates.md

@@ -74,7 +74,6 @@ This template is used by the `ObjectView` generic view to display a single objec
 | `breadcrumbs`       | -        | Breadcrumb list items (HTML `<li>` elements) |
 | `object_identifier` | -        | A unique identifier (string) for the object  |
 | `extra_controls`    | -        | Additional action buttons to display         |
-| `extra_tabs`        | -        | Additional tabs to include                   |
 
 #### Context
 

+ 2 - 1
docs/release-notes/version-3.5.md

@@ -1,7 +1,8 @@
-# NetBox v3.4
+# NetBox v3.5
 
 ## v3.5.0 (FUTURE)
 
 ### Other Changes
 
+* [#10604](https://github.com/netbox-community/netbox/issues/10604) - Remove unused `extra_tabs` block from `object.html` generic template
 * [#10923](https://github.com/netbox-community/netbox/issues/10923) - Remove unused `NetBoxModelCSVForm` class (replaced by `NetBoxModelImportForm`)

+ 0 - 4
netbox/templates/generic/object.html

@@ -11,7 +11,6 @@ Blocks:
   breadcrumbs: Breadcrumb list items (HTML <li> elements)
   object_identifier: Unique identifier for the object
   extra_controls: Additional action buttons to display
-  extra_tabs: Additional tabs to include
   content: Page content
 
 Context:
@@ -84,9 +83,6 @@ Context:
       <a class="nav-link{% if not tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
     </li>
 
-    {# Include any extra tabs passed by the view #}
-    {% block extra_tabs %}{% endblock %}
-
     {# Include tabs for registered model views #}
     {% model_view_tabs object %}
   </ul>