We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a33e477 commit f63dcb1Copy full SHA for f63dcb1
netbox/templates/base/base.html
@@ -5,7 +5,7 @@
5
<html
6
lang="en"
7
data-netbox-path="{{ request.path }}"
8
- data-netbox-base-path="{% base_path %}"
+ data-netbox-base-path="{{ settings.BASE_PATH }}"
9
{% if preferences|get_key:'ui.colormode' == 'dark'%}
10
data-netbox-color-mode="dark"
11
{% else %}
netbox/utilities/templatetags/helpers.py
@@ -355,14 +355,6 @@ def querystring(request, **kwargs):
355
return ''
356
357
358
-@register.simple_tag()
359
-def base_path():
360
- """
361
- Access `BASE_PATH` in templates.
362
363
- return settings.BASE_PATH
364
-
365
366
@register.inclusion_tag('utilities/templatetags/utilization_graph.html')
367
def utilization_graph(utilization, warning_threshold=75, danger_threshold=90):
368
"""
0 commit comments