From 6a6959d0411eee32fe06be66e83ceec1f7262824 Mon Sep 17 00:00:00 2001
From: hSaria <34197532+hSaria@users.noreply.github.com>
Date: Fri, 13 Dec 2019 18:06:14 +0000
Subject: [PATCH 1/2] Fixes #3761: copy button for tokens
---
netbox/templates/users/api_tokens.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/netbox/templates/users/api_tokens.html b/netbox/templates/users/api_tokens.html
index c6a219381..b775af73e 100644
--- a/netbox/templates/users/api_tokens.html
+++ b/netbox/templates/users/api_tokens.html
@@ -10,6 +10,7 @@
+
Copy
{% if perms.users.change_token %}
Edit
{% endif %}
@@ -17,7 +18,8 @@
Delete
{% endif %}
-
{{ token.key }}
+
+
{{ token.key }}
{% if token.is_expired %}
Expired
{% endif %}
@@ -66,3 +68,9 @@
{% endblock %}
+
+{% block javascript %}
+
+{% endblock %}
From ea51aa97b764e83ce6780453b443015e279b595c Mon Sep 17 00:00:00 2001
From: hSaria <34197532+hSaria@users.noreply.github.com>
Date: Fri, 13 Dec 2019 18:08:34 +0000
Subject: [PATCH 2/2] Update version-2.6.md
---
docs/release-notes/version-2.6.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/release-notes/version-2.6.md b/docs/release-notes/version-2.6.md
index 5a64ceb9e..7acf93cc7 100644
--- a/docs/release-notes/version-2.6.md
+++ b/docs/release-notes/version-2.6.md
@@ -4,6 +4,7 @@
* [#3152](https://github.com/netbox-community/netbox/issues/3152) - Include direct link to rack elevations on site view
* [#3441](https://github.com/netbox-community/netbox/issues/3441) - Move virtual machine results near devices in global search
+* [#3761](https://github.com/netbox-community/netbox/issues/3761) - Added copy button for API tokens
## Bug Fixes