fix user key styles

This commit is contained in:
checktheroads 2021-04-16 16:02:56 -07:00
parent fb25c79b9c
commit 726ab7fc05
2 changed files with 7 additions and 7 deletions

View File

@ -51,9 +51,9 @@
{% empty %}
<p>You do not have any API tokens.</p>
{% 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>
Add a token
Add a Token
</a>
</div>
</div>

View File

@ -11,7 +11,7 @@
</a>
</div>
<h4>
Your user key is
Your User Key is
{% if object.is_active %}
<span class="badge bg-success">Active</span>
{% else %}
@ -27,19 +27,19 @@
Your user key is inactive. Ask an administrator to enable it for you.
</div>
{% endif %}
<pre class="border rounded p-3 copyable">{{ object.public_key }}</pre>
<pre class="copyable">{{ object.public_key }}</pre>
<hr />
{% if object.session_key %}
<div class="pull-right noprint">
<a href="{% url 'user:sessionkey_delete' %}" class="btn btn-danger">
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span>
Delete session key
Delete Session Key
</a>
</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>
{% else %}
<h4>No active session key</h4>
<h4>No Active Session Key</h4>
{% endif %}
{% else %}
<p>You don't have a user key on file.</p>