Correction of Custom Links example in Docs #3741

Closed
opened 2025-12-29 18:30:52 +01:00 by adam · 0 comments
Owner

Originally created by @mahomedh on GitHub (Jun 1, 2020).

Change Type

[ ] Addition
[x] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Area

[ ] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[ ] Administration/development
[x] Other

Proposed Changes

The example under Conditional Rendering needs to be changed for 2.8.5

Line 27 has this text:

{% if obj.status == 1 %}View NMS{% endif %}

it should be changed to:

{% if obj.status == 'active' %}View NMS{% endif %}
Originally created by @mahomedh on GitHub (Jun 1, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. Please indicate the nature of the change by placing an X in one of the boxes below. --> ### Change Type [ ] Addition [x] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Area [ ] Installation instructions [ ] Configuration parameters [ ] Functionality/features [ ] REST API [ ] Administration/development [x] Other <!-- Describe the proposed change(s). --> ### Proposed Changes The example under [Conditional Rendering](https://netbox.readthedocs.io/en/stable/additional-features/custom-links/#conditional-rendering) needs to be changed for `2.8.5` Line 27 has this text: ``` {% if obj.status == 1 %}View NMS{% endif %} ``` it should be changed to: ``` {% if obj.status == 'active' %}View NMS{% endif %} ```
adam added the status: acceptedtype: documentation labels 2025-12-29 18:30:52 +01:00
adam closed this issue 2025-12-29 18:30:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3741