2020-12-05 02:51:50 +01:00
|
|
|
{% extends "users/settings_base.html" %}
|
2019-11-22 15:33:22 +01:00
|
|
|
|
|
|
|
{% block title %}
|
2020-12-05 02:51:50 +01:00
|
|
|
{{ _("API Tokens | %(username)s", username=user.username) }}
|
2019-11-22 15:33:22 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2020-12-05 02:51:50 +01:00
|
|
|
{% block pane %}
|
2019-11-22 15:33:22 +01:00
|
|
|
<a class="btn btn-primary float-right" href="{{ url_for('api.create_edit_token', username=user.username) }}">Create</a>
|
2020-12-09 20:51:56 +01:00
|
|
|
<a class="btn btn-secondary mr-2 float-right" href="/help/api/">API Documentation</a>
|
2020-12-05 02:51:50 +01:00
|
|
|
<h2 class="mt-0">{{ _("API Tokens") }}</h2>
|
2019-11-22 15:33:22 +01:00
|
|
|
|
2020-12-05 02:51:50 +01:00
|
|
|
<div class="list-group">
|
2019-11-22 15:33:22 +01:00
|
|
|
{% for token in user.tokens %}
|
2020-12-05 02:51:50 +01:00
|
|
|
<a class="list-group-item list-group-item-action" href="{{ url_for('api.create_edit_token', username=user.username, id=token.id) }}">
|
|
|
|
{{ token.name }}
|
|
|
|
</a>
|
2019-11-22 15:33:22 +01:00
|
|
|
{% else %}
|
2020-12-05 02:51:50 +01:00
|
|
|
<span class="list-group-item">
|
2019-11-22 15:33:22 +01:00
|
|
|
<i>No tokens created</i>
|
2020-12-05 02:51:50 +01:00
|
|
|
</span>
|
2019-11-22 15:33:22 +01:00
|
|
|
{% endfor %}
|
2020-12-05 02:51:50 +01:00
|
|
|
</div>
|
2019-11-22 15:33:22 +01:00
|
|
|
{% endblock %}
|