mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Include instructions when displaying an inactive user key
This commit is contained in:
parent
cd5a86bfcf
commit
25ee796d5b
@ -19,6 +19,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</h4>
|
</h4>
|
||||||
{% include 'inc/created_updated.html' with obj=userkey %}
|
{% include 'inc/created_updated.html' with obj=userkey %}
|
||||||
|
{% if not userkey.is_active %}
|
||||||
|
<div class="alert alert-warning" role="alert">
|
||||||
|
<i class="fa fa-warning"></i>
|
||||||
|
Your user key is inactive. Ask an administrator to enable it for you.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<pre>{{ userkey.public_key }}</pre>
|
<pre>{{ userkey.public_key }}</pre>
|
||||||
<hr />
|
<hr />
|
||||||
{% if userkey.session_key %}
|
{% if userkey.session_key %}
|
||||||
|
Loading…
Reference in New Issue
Block a user