## mako <%page expression_filter="h"/> <%inherit file="../main.html"/> <% from django.utils.translation import ugettext as _ from openedx.core.djangoapps.api_admin.models import ApiAccessRequest from openedx.core.djangolib.markup import Text, HTML %>

${_("{platform_name} API Access Request").format(platform_name=settings.PLATFORM_NAME)}

% if status == ApiAccessRequest.PENDING: ## Translators: "platform_name" is the name of this Open edX installation. ${Text(_('Your request to access the {platform_name} Course Catalog API is being processed. You will receive a message at the email address in your profile when processing is complete. You can also return to this page to see the status of your API access request.')).format( platform_name=Text(settings.PLATFORM_NAME) )} % elif status == ApiAccessRequest.DENIED: ## Translators: "platform_name" is the name of this Open edX installation. "api_support_email_link" is HTML for a link to email the API support staff. ${Text(_('Your request to access the {platform_name} Course Catalog API has been denied. If you think this is an error, or for other questions about using this API, contact {api_support_email_link}.')).format( platform_name=Text(settings.PLATFORM_NAME), api_support_email_link=HTML('{email}').format(email=Text(api_support_email)) )} % elif status == ApiAccessRequest.APPROVED: ${Text(_('Your request to access the {platform_name} Course Catalog API has been approved.')).format( platform_name=Text(settings.PLATFORM_NAME) )} % if application:

${_("Application Name") + ":"} ${application.name}

${_("API Client ID") + ":"} ${application.client_id}

${_("API Client Secret") + ":"} ${application.client_secret}

${_("Redirect URLs") + ":"} ${application.redirect_uris}

${_('If you would like to regenerate your API client information, please use the form below.')}

% endif
${form.as_p() | n}
% endif

## Translators: "platform_name" is the name of this Open edX installation. "link_start" and "link_end" are the HTML for a link to the API documentation. "api_support_email_link" is HTML for a link to email the API support staff. ${Text(_('To learn more about the {platform_name} Course Catalog API, visit {link_start}our API documentation page{link_end}. For questions about using this API, contact {api_support_email_link}.')).format( platform_name=Text(settings.PLATFORM_NAME), link_start=HTML('').format(Text(api_support_link)), link_end=HTML(''), api_support_email_link=HTML('{email}').format(email=Text(api_support_email)) )}