{% extends 'layout.html' %} {% load url from future %} {% block style_ext %} .caps form { margin-bottom: 0; } .caps .cap { margin: .1em .2em; padding: 5px; } .caps .cap_controls { clear: both; margin: .5em 0 0 0; padding: 9px; } .caps .cap_controls form { margin-right: .5em; } {% endblock %} {% block title %}Authorized Clients{% endblock %} {% block content_generic %}

Authorized Clients

{% include "message_box.html" %} {% if clients %} {% for client, info in clients %} {% endfor %}
Client Access

Name: {{ client.name }}

Key: {{ client.key }}

Status: {{ info.status }}

Access tokens (active / expired): {{ info.tokens_active.count }} / {{ info.tokens_expired.count }}

{% if client.description %}

Descripton: {{ client.description }}

{% endif %}
{% csrf_token %}

{% for cap in info.scope_active %}
{% csrf_token %} {{ cap }}
{% endfor %} {% for cap in info.scope_expired %}{% if cap not in info.scope_active %}
{% csrf_token %} {{ cap }}
{% endif %}{% endfor %}
{% csrf_token %}
{% csrf_token %}
{% else %}
No clients (apps) are authorized to access data (except non-listing "public:r" access, which is always allowed).
{% endif %} {% endblock %}