[PR #16409] [MERGED] Closes #16359: Enable plugins to inject content within the top navigation bar #14850

Closed
opened 2025-12-29 23:27:05 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16409
Author: @jeremystretch
Created: 6/4/2024
Status: Merged
Merged: 6/5/2024
Merged by: @jeremystretch

Base: featureHead: 16359-plugins-navbar-content


📝 Commits (1)

  • bb6efa5 Closes #16359: Add navbar() method to PluginTemplateExtension

📊 Changes

7 files changed (+37 additions, -14 deletions)

View changed files

📝 docs/plugins/development/views.md (+3 -0)
📝 netbox/netbox/plugins/registration.py (+1 -9)
📝 netbox/netbox/plugins/templates.py (+9 -1)
📝 netbox/netbox/tests/dummy_plugin/template_content.py (+7 -1)
📝 netbox/netbox/tests/test_plugins.py (+2 -1)
📝 netbox/templates/base/layout.html (+6 -1)
📝 netbox/utilities/templatetags/plugins.py (+9 -1)

📄 Description

Closes: #16359

  • Add navbar() method to PluginTemplateExtension
  • Permit registration of template extensions globally (without specifying a model)
  • Introduce the plugin_navbar() template tag & invoke in base layout
  • Update documentation

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/16409 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 6/4/2024 **Status:** ✅ Merged **Merged:** 6/5/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `16359-plugins-navbar-content` --- ### 📝 Commits (1) - [`bb6efa5`](https://github.com/netbox-community/netbox/commit/bb6efa5418505037a69c5a8575ee41faec9bebdb) Closes #16359: Add navbar() method to PluginTemplateExtension ### 📊 Changes **7 files changed** (+37 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `docs/plugins/development/views.md` (+3 -0) 📝 `netbox/netbox/plugins/registration.py` (+1 -9) 📝 `netbox/netbox/plugins/templates.py` (+9 -1) 📝 `netbox/netbox/tests/dummy_plugin/template_content.py` (+7 -1) 📝 `netbox/netbox/tests/test_plugins.py` (+2 -1) 📝 `netbox/templates/base/layout.html` (+6 -1) 📝 `netbox/utilities/templatetags/plugins.py` (+9 -1) </details> ### 📄 Description ### Closes: #16359 - Add `navbar()` method to PluginTemplateExtension - Permit registration of template extensions globally (without specifying a model) - Introduce the `plugin_navbar()` template tag & invoke in base layout - Update documentation --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:27:05 +01:00
adam closed this issue 2025-12-29 23:27:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14850