mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
23 lines
672 B
HTML
23 lines
672 B
HTML
{% extends "users/settings_base.html" %}
|
|
|
|
{% block title %}
|
|
{{ _("API Tokens | %(username)s", username=user.username) }}
|
|
{% endblock %}
|
|
|
|
{% block pane %}
|
|
<a class="btn btn-primary float-right" href="{{ url_for('api.create_edit_token', username=user.username) }}">Create</a>
|
|
<h2 class="mt-0">{{ _("API Tokens") }}</h2>
|
|
|
|
<div class="list-group">
|
|
{% for token in user.tokens %}
|
|
<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>
|
|
{% else %}
|
|
<span class="list-group-item">
|
|
<i>No tokens created</i>
|
|
</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|