Browse Source

Include instructions when displaying an inactive user key

Jeremy Stretch 7 years ago
parent
commit
25ee796d5b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      netbox/templates/users/userkey.html

+ 6 - 0
netbox/templates/users/userkey.html

@@ -19,6 +19,12 @@
             {% endif %}
         </h4>
         {% 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>
         <hr />
         {% if userkey.session_key %}