[PR #3673] [MERGED] 3457 Display cable colors in device interface list #12611

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3673
Author: @ananace
Created: 11/6/2019
Status: Merged
Merged: 11/6/2019
Merged by: @jeremystretch

Base: developHead: cable-color-display


📝 Commits (1)

  • bbd6598 3457 Display cable colors in device interface list

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 netbox/project-static/css/base.css (+8 -0)
📝 netbox/templates/dcim/inc/interface.html (+3 -0)

📄 Description

Fixes: #3457

This adds a small informative colour block next to the cable name/ID for all connected interfaces which have a cable colour defined.
I tried the suggestion in the parent issue to instead make the cable link/button itself into the cable colour, but doing this without making the text difficult to read - and without losing the visual denotion that the cable name/ID is a link to said cable - proved difficult.

Screenshot_20191106_100908
Screenshot_20191106_101919


🔄 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/3673 **Author:** [@ananace](https://github.com/ananace) **Created:** 11/6/2019 **Status:** ✅ Merged **Merged:** 11/6/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `cable-color-display` --- ### 📝 Commits (1) - [`bbd6598`](https://github.com/netbox-community/netbox/commit/bbd65988f92add4bf0c9699b506c3088cde896ec) 3457 Display cable colors in device interface list ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/css/base.css` (+8 -0) 📝 `netbox/templates/dcim/inc/interface.html` (+3 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #3457 <!-- Please include a summary of the proposed changes below. --> This adds a small informative colour block next to the cable name/ID for all connected interfaces which have a cable colour defined. I tried the suggestion in the parent issue to instead make the cable link/button itself into the cable colour, but doing this without making the text difficult to read - and without losing the visual denotion that the cable name/ID is a link to said cable - proved difficult. ![Screenshot_20191106_100908](https://user-images.githubusercontent.com/534460/68284530-fcc67d00-007d-11ea-9a25-352dcbc34eba.png) ![Screenshot_20191106_101919](https://user-images.githubusercontent.com/534460/68285089-eb31a500-007e-11ea-88bf-fb7a877ca8ca.png) --- <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:22:38 +01:00
adam closed this issue 2025-12-29 22:22:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12611