* Closes #16929: Add version & user details as data attributes * Fix typo
This commit is contained in:
parent
0830ebb34a
commit
954d0cfcd0
|
|
@ -7,7 +7,11 @@
|
||||||
<html
|
<html
|
||||||
lang="en"
|
lang="en"
|
||||||
data-netbox-url-name="{{ request.resolver_match.url_name }}"
|
data-netbox-url-name="{{ request.resolver_match.url_name }}"
|
||||||
data-netbox-base-path="{{ settings.BASE_PATH }}"
|
data-netbox-version="{{ settings.VERSION }}"
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
data-netbox-user-name="{{ request.user.username }}"
|
||||||
|
data-netbox-user-id="{{ request.user.pk }}"
|
||||||
|
{% endif %}
|
||||||
>
|
>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue