|
|
@@ -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 %}
|