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 0830ebb commit 954d0cfCopy full SHA for 954d0cf
netbox/templates/base/base.html
@@ -7,7 +7,11 @@
7
<html
8
lang="en"
9
data-netbox-url-name="{{ request.resolver_match.url_name }}"
10
- data-netbox-base-path="{{ settings.BASE_PATH }}"
+ data-netbox-version="{{ settings.VERSION }}"
11
+ {% if request.user.is_authenticated %}
12
+ data-netbox-user-name="{{ request.user.username }}"
13
+ data-netbox-user-id="{{ request.user.pk }}"
14
+ {% endif %}
15
>
16
<head>
17
<meta charset="UTF-8" />
0 commit comments