From 4a0942ab4ab937c0439214f2b809ab374707a1c2 Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Mon, 10 May 2021 21:34:25 -0500 Subject: [PATCH] Remove userkey references --- netbox/templates/users/base.html | 1 - netbox/templates/users/sessionkey_delete.html | 5 -- netbox/templates/users/userkey.html | 53 ------------------ netbox/templates/users/userkey_edit.html | 55 ------------------- 4 files changed, 114 deletions(-) delete mode 100644 netbox/templates/users/sessionkey_delete.html delete mode 100644 netbox/templates/users/userkey.html delete mode 100644 netbox/templates/users/userkey_edit.html diff --git a/netbox/templates/users/base.html b/netbox/templates/users/base.html index 503b081ad..d24681462 100644 --- a/netbox/templates/users/base.html +++ b/netbox/templates/users/base.html @@ -12,7 +12,6 @@ Change Password {% endif %} API Tokens - User Key
diff --git a/netbox/templates/users/sessionkey_delete.html b/netbox/templates/users/sessionkey_delete.html deleted file mode 100644 index e3e8a7efc..000000000 --- a/netbox/templates/users/sessionkey_delete.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'generic/object_delete.html' %} - -{% block message %} -

Are you sure you want to delete your session key?

-{% endblock %} diff --git a/netbox/templates/users/userkey.html b/netbox/templates/users/userkey.html deleted file mode 100644 index 810a8ca3c..000000000 --- a/netbox/templates/users/userkey.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends 'users/base.html' %} - -{% block title %}User Key{% endblock %} - -{% block usercontent %} - {% if object %} - -

- Your User Key is - {% if object.is_active %} - Active - {% else %} - Inactive - {% endif %} -

-

- Created {{ object.created }} · Updated {{ object.last_updated|timesince }} ago -

- {% if not object.is_active %} - - {% endif %} -
{{ object.public_key }}
-
- {% if object.session_key %} - -

Session Key: Active

- Created {{ object.session_key.created }} - {% else %} -

No Active Session Key

- {% endif %} - {% else %} -

You don't have a user key on file.

-

- - - Create a User Key - -

- {% endif %} -{% endblock %} diff --git a/netbox/templates/users/userkey_edit.html b/netbox/templates/users/userkey_edit.html deleted file mode 100644 index 76d79d398..000000000 --- a/netbox/templates/users/userkey_edit.html +++ /dev/null @@ -1,55 +0,0 @@ -{% extends 'users/base.html' %} -{% load static %} -{% load form_helpers %} - -{% block title %}User Key{% endblock %} - -{% block usercontent %} - {% if object.is_active %} - - {% endif %} -
- {% csrf_token %} -
- {% render_field form.public_key %} -
-
-
- -
-
- Cancel - -
-
-
- -{% endblock %}