[PR #6786] [MERGED] Refactor navigation menu to support plugin items #13167

Closed
opened 2025-12-29 22:25:46 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/6786
Author: @jeremystretch
Created: 7/22/2021
Status: Merged
Merged: 7/23/2021
Merged by: @jeremystretch

Base: featureHead: nav-menu-plugins


📝 Commits (4)

📊 Changes

3 files changed (+265 additions, -233 deletions)

View changed files

📝 netbox/netbox/navigation_menu.py (+227 -179)
📝 netbox/utilities/templates/navigation/nav_items.html (+30 -22)
📝 netbox/utilities/templatetags/nav.py (+8 -32)

📄 Description

This builds on @thatmattlove's earlier work on the navigation menu refactor to add support for plugin items and view permissions awareness. Compatibility is maintained with the PluginMenuItem and PluginMenuButton classes for now, though we may re-evaluate these in the future.


🔄 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/6786 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/22/2021 **Status:** ✅ Merged **Merged:** 7/23/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `nav-menu-plugins` --- ### 📝 Commits (4) - [`6b09c13`](https://github.com/netbox-community/netbox/commit/6b09c139e7a15598fd41ee4b00c6b472cb8668eb) Refactor navigation menu - [`3f0b355`](https://github.com/netbox-community/netbox/commit/3f0b3557178f398b8661bcbdd7ae1e683f4e1255) Fix typo - [`a0b17e1`](https://github.com/netbox-community/netbox/commit/a0b17e145b30eed88e6f03a42df5629be79383d9) Clean up nav menu template - [`adda8c4`](https://github.com/netbox-community/netbox/commit/adda8c4642bd6395c663b58198d10417c58bef2b) Tweak menu items order ### 📊 Changes **3 files changed** (+265 additions, -233 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/navigation_menu.py` (+227 -179) 📝 `netbox/utilities/templates/navigation/nav_items.html` (+30 -22) 📝 `netbox/utilities/templatetags/nav.py` (+8 -32) </details> ### 📄 Description This builds on @thatmattlove's earlier work on the navigation menu refactor to add support for plugin items and view permissions awareness. Compatibility is maintained with the PluginMenuItem and PluginMenuButton classes for now, though we may re-evaluate these in the future. --- <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 22:25:46 +01:00
adam closed this issue 2025-12-29 22:25:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13167