{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.OAUTH2SERVER_SETTINGS_TEMPLATE %} {# FIXME Import from future formatter. #} {%- from "invenio_oauth2server/settings/_macros.html" import render_field with context%} {%- import "invenio_oauth2server/settings/helpers.html" as helpers with context %} {% block settings_content %} {{helpers.panel_start( _('Developer Applications'), btn=_('New application'), btn_icon='fa fa-plus', btn_href=url_for('.client_new'), with_body=False, )}} {% if clients %}
{{ _('You have registered these applications to use the %(site_name)s API:', site_name=config.THEME_SITENAME) }}
{{ _("You have not yet registered any applications. Click the 'New application' button to create an application to access the %(site_name)s API.", site_name=config['THEME_SITENAME']) }}
{{ _('Following are personal tokens used to access the %(site_name)s API:', site_name=config.THEME_SITENAME) }}
{{ _("You have not yet created any personal access tokens. Click the 'New token' button to create a personal access token.") }}
{{ _('You have granted the following application access to your account:') }}
{{ _('You have not yet granted any external applications access to your account.') }}