diff --git a/netbox/utilities/templatetags/navigation.py b/netbox/utilities/templatetags/navigation.py index b34b584c1..fd492db22 100644 --- a/netbox/utilities/templatetags/navigation.py +++ b/netbox/utilities/templatetags/navigation.py @@ -47,7 +47,16 @@ def nav(context): @register.simple_tag(takes_context=True) def htmx_boost(context, target='#page-content', select='#page-content'): - if not context.get('htmx_navigation'): + """ + Renders the HTML attributes needed to effect HTMX boosting within an element if + HTMX navigation is enabled for the request. The target and select parameters are + rendered as `hx-target` and `hx-select`, respectively. For example: + +