diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-11-22 14:33:22 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-11-27 01:06:58 +0000 |
| commit | 4ce388c8aa5d5502408609983535a9812d41d6d1 (patch) | |
| tree | 5ad9123949ca2068dfe975284d0f1b3acdf5b437 /app/templates/users/profile.html | |
| parent | cb5451fe5d49e0eda379e3cd636c54e8ea1a3f8e (diff) | |
| download | cheatdb-4ce388c8aa5d5502408609983535a9812d41d6d1.tar.xz | |
Add API Token creation
Diffstat (limited to 'app/templates/users/profile.html')
| -rw-r--r-- | app/templates/users/profile.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index d1edf54..bd4875d 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -127,6 +127,15 @@ </td> </tr> {% endif %} + {% if user.checkPerm(current_user, "CREATE_TOKEN") %} + <tr> + <td>API Tokens:</td> + <td> + <a href="{{ url_for('api.list_tokens', username=user.username) }}">Manage</a> + <span class="badge badge-primary">{{ user.tokens.count() }}</span> + </td> + </tr> + {% endif %} </table> </div> </div> |
