mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
fix user key styles
This commit is contained in:
parent
fb25c79b9c
commit
726ab7fc05
@ -51,9 +51,9 @@
|
|||||||
{% empty %}
|
{% empty %}
|
||||||
<p>You do not have any API tokens.</p>
|
<p>You do not have any API tokens.</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<a href="{% url 'user:token_add' %}" class="btn btn-primary">
|
<a href="{% url 'user:token_add' %}" class="btn btn-sm btn-primary my-3">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
|
||||||
Add a token
|
Add a Token
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h4>
|
<h4>
|
||||||
Your user key is
|
Your User Key is
|
||||||
{% if object.is_active %}
|
{% if object.is_active %}
|
||||||
<span class="badge bg-success">Active</span>
|
<span class="badge bg-success">Active</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -27,19 +27,19 @@
|
|||||||
Your user key is inactive. Ask an administrator to enable it for you.
|
Your user key is inactive. Ask an administrator to enable it for you.
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<pre class="border rounded p-3 copyable">{{ object.public_key }}</pre>
|
<pre class="copyable">{{ object.public_key }}</pre>
|
||||||
<hr />
|
<hr />
|
||||||
{% if object.session_key %}
|
{% if object.session_key %}
|
||||||
<div class="pull-right noprint">
|
<div class="pull-right noprint">
|
||||||
<a href="{% url 'user:sessionkey_delete' %}" class="btn btn-danger">
|
<a href="{% url 'user:sessionkey_delete' %}" class="btn btn-danger">
|
||||||
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span>
|
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span>
|
||||||
Delete session key
|
Delete Session Key
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h4>Session key: <span class="label label-success">Active</span></h4>
|
<h4>Session Key: <span class="badge bg-success">Active</span></h4>
|
||||||
<small class="text-muted">Created {{ object.session_key.created }}</small>
|
<small class="text-muted">Created {{ object.session_key.created }}</small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h4>No active session key</h4>
|
<h4>No Active Session Key</h4>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>You don't have a user key on file.</p>
|
<p>You don't have a user key on file.</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user