[PR #8943] [MERGED] Closes #8912: Add linkify template filter #13414

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8943
Author: @jeremystretch
Created: 3/22/2022
Status: Merged
Merged: 3/22/2022
Merged by: @jeremystretch

Base: featureHead: 8912-linkify-filter


📝 Commits (3)

  • 75dae5f Introduce linkify template filter
  • 8d68204 Extend linkify() to accept an attr name for the link text
  • 7c14b8d Clean up display of tenant groups

📊 Changes

72 files changed (+285 additions, -747 deletions)

View changed files

📝 docs/plugins/development/templates.md (+2 -0)
📝 netbox/templates/circuits/circuit.html (+5 -11)
📝 netbox/templates/circuits/inc/circuit_termination.html (+6 -8)
📝 netbox/templates/circuits/providernetwork.html (+1 -3)
📝 netbox/templates/dcim/cable.html (+3 -7)
📝 netbox/templates/dcim/cable_trace.html (+1 -1)
📝 netbox/templates/dcim/consoleport.html (+5 -17)
📝 netbox/templates/dcim/consoleserverport.html (+5 -15)
📝 netbox/templates/dcim/device.html (+19 -31)
📝 netbox/templates/dcim/devicebay.html (+2 -6)
📝 netbox/templates/dcim/devicetype.html (+1 -1)
📝 netbox/templates/dcim/frontport.html (+4 -14)
📝 netbox/templates/dcim/inc/cable_termination.html (+10 -26)
📝 netbox/templates/dcim/inc/cabletermination.html (+2 -2)
📝 netbox/templates/dcim/inc/endpoint_connection.html (+2 -2)
📝 netbox/templates/dcim/inc/interface_vlans_table.html (+2 -6)
📝 netbox/templates/dcim/inc/nonracked_devices.html (+1 -1)
📝 netbox/templates/dcim/inc/panels/inventory_items.html (+3 -13)
📝 netbox/templates/dcim/interface.html (+20 -74)
📝 netbox/templates/dcim/inventoryitem.html (+5 -31)

...and 52 more files

📄 Description

Closes: #8912

  • Introduce a linkify template filter for generating hyperlink using an object's get_absolute_url() method
  • Replace hard-coded hyperlink elements with |linkify where appropriate
  • General cleanup

🔄 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/8943 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/22/2022 **Status:** ✅ Merged **Merged:** 3/22/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8912-linkify-filter` --- ### 📝 Commits (3) - [`75dae5f`](https://github.com/netbox-community/netbox/commit/75dae5fbe8e702809075b8d1661b12a361408941) Introduce linkify template filter - [`8d68204`](https://github.com/netbox-community/netbox/commit/8d682041a43b6176198f64bd80a46ea9ed99d2d8) Extend linkify() to accept an attr name for the link text - [`7c14b8d`](https://github.com/netbox-community/netbox/commit/7c14b8d97b78c757700028ea7442321f33a74304) Clean up display of tenant groups ### 📊 Changes **72 files changed** (+285 additions, -747 deletions) <details> <summary>View changed files</summary> 📝 `docs/plugins/development/templates.md` (+2 -0) 📝 `netbox/templates/circuits/circuit.html` (+5 -11) 📝 `netbox/templates/circuits/inc/circuit_termination.html` (+6 -8) 📝 `netbox/templates/circuits/providernetwork.html` (+1 -3) 📝 `netbox/templates/dcim/cable.html` (+3 -7) 📝 `netbox/templates/dcim/cable_trace.html` (+1 -1) 📝 `netbox/templates/dcim/consoleport.html` (+5 -17) 📝 `netbox/templates/dcim/consoleserverport.html` (+5 -15) 📝 `netbox/templates/dcim/device.html` (+19 -31) 📝 `netbox/templates/dcim/devicebay.html` (+2 -6) 📝 `netbox/templates/dcim/devicetype.html` (+1 -1) 📝 `netbox/templates/dcim/frontport.html` (+4 -14) 📝 `netbox/templates/dcim/inc/cable_termination.html` (+10 -26) 📝 `netbox/templates/dcim/inc/cabletermination.html` (+2 -2) 📝 `netbox/templates/dcim/inc/endpoint_connection.html` (+2 -2) 📝 `netbox/templates/dcim/inc/interface_vlans_table.html` (+2 -6) 📝 `netbox/templates/dcim/inc/nonracked_devices.html` (+1 -1) 📝 `netbox/templates/dcim/inc/panels/inventory_items.html` (+3 -13) 📝 `netbox/templates/dcim/interface.html` (+20 -74) 📝 `netbox/templates/dcim/inventoryitem.html` (+5 -31) _...and 52 more files_ </details> ### 📄 Description ### Closes: #8912 - Introduce a `linkify` template filter for generating hyperlink using an object's `get_absolute_url()` method - Replace hard-coded hyperlink elements with `|linkify` where appropriate - General cleanup --- <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:27:16 +01:00
adam closed this issue 2025-12-29 22:27:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13414