1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Cosmetic tweaks to the user area

This commit is contained in:
Jeremy Stretch
2020-05-06 13:25:17 -04:00
parent 881b0a6add
commit fbc8b46d13
7 changed files with 20 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
{% extends 'users/_user.html' %}
{% extends 'users/base.html' %}
{% load helpers %}
{% block title %}API Tokens{% endblock %}
@@ -19,7 +19,7 @@
{% endif %}
</div>
<i class="fa fa-key"></i>
<span id="token_{{ token.pk }}">{{ token.key }}</span>
<samp><span id="token_{{ token.pk }}">{{ token.key }}</span></samp>
{% if token.is_expired %}
<span class="label label-danger">Expired</span>
{% endif %}
@@ -27,24 +27,24 @@
<div class="panel-body">
<div class="row">
<div class="col-md-4">
<span title="{{ token.created }}">{{ token.created|date }}</span><br />
<small class="text-muted">Created</small>
<small class="text-muted">Created</small><br />
<span title="{{ token.created }}">{{ token.created|date }}</span>
</div>
<div class="col-md-4">
<small class="text-muted">Expires</small><br />
{% if token.expires %}
<span title="{{ token.expires }}">{{ token.expires|date }}</span><br />
<span title="{{ token.expires }}">{{ token.expires|date }}</span>
{% else %}
<span>Never</span><br />
<span>Never</span>
{% endif %}
<small class="text-muted">Expires</small>
</div>
<div class="col-md-4">
<small class="text-muted">Create/edit/delete operations</small><br />
{% if token.write_enabled %}
<span class="label label-success">Enabled</span>
{% else %}
<span class="label label-danger">Disabled</span>
{% endif %}<br />
<small class="text-muted">Create/edit/delete operations</small>
{% endif %}
</div>
</div>
{% if token.description %}