From f1753ed19e86160ea2cc259e65baba885e9db124 Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Wed, 1 Jun 2016 17:00:11 -0400 Subject: [PATCH] Add page titles to API admin pages. ECOM-4264 --- lms/templates/api_admin/status.html | 6 +++++- lms/templates/api_admin/terms_of_service.html | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lms/templates/api_admin/status.html b/lms/templates/api_admin/status.html index c75939fb08..791aeec8d2 100644 --- a/lms/templates/api_admin/status.html +++ b/lms/templates/api_admin/status.html @@ -1,13 +1,17 @@ ## 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 HTML, Text %> +<%block name="pagetitle"> +${_("API Access Request Status")} + +

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

diff --git a/lms/templates/api_admin/terms_of_service.html b/lms/templates/api_admin/terms_of_service.html index f52106ead7..2a8da5259e 100644 --- a/lms/templates/api_admin/terms_of_service.html +++ b/lms/templates/api_admin/terms_of_service.html @@ -1,11 +1,13 @@ ## mako <%page expression_filter="h"/> <%inherit file="../main.html"/> -<% +<%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ %> +<%block name="pagetitle">${_("API Terms of Service")} +

${_("Terms of Service for {platform_name} APIs").format(platform_name=settings.PLATFORM_NAME)}

${_("Effective Date: April 12th, 2016")}