@@ -11,17 +11,52 @@ from openedx.core.djangolib.markup import Text, HTML
<divid="api-access-wrapper">
<h1id="api-access-request-header">${_("{platform_name} API Access Request").format(platform_name=settings.PLATFORM_NAME)}</h1>
<divclass="request-status request-${status}">
% if status == ApiAccessRequest.PENDING:
## 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.
<pid="api-access-status">${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. 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, visit our FAQ page or contact {api_support_email_link}.')).format(
## 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)
)}
## TODO (ECOM-3946): Add status text for 'active' and 'denied', as well as API client creation.
% 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(
<inputid="api-access-submit"type="submit"value="${_('Generate API client credentials')}"/>
</form>
% endif
</p>
<p>
## 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(
@@ -52,57 +52,60 @@ from openedx.core.djangolib.markup import Text, HTML
</%block>
<%blockname="bodyclass">view-in-course view-course-info ${course.css_class or ''}</%block>
<sectionclass="container">
<divclass="home">
<divclass="page-header-main">
<h1class="page-title">${_("Welcome to {org}'s {course_name}!").format(org=course.display_org_with_default, course_name=course.display_number_with_default)}</h1>
<h1class="page-title">${_("Welcome to {org}'s {course_name}!").format(org=course.display_org_with_default, course_name=course.display_number_with_default)}</h1>
<h2class="title">${_("Your certificate is available")}</h2>
<pclass="copy">
${_("You can keep working for a higher grade, or request your certificate now.")}
</p>
</div>
<divclass="msg-actions">
%if show_cert_web_view and cert_web_view_url:
<aclass="btn"href="${cert_web_view_url | h}"target="_blank"title="${_('View certificate in a new browser window or tab.')}">
${_("View Certificate")}
</a>
%elif download_url:
<aclass="btn"href="${download_url | h}"target="_blank"title="${_('PDF will open in a new browser window or tab.')}">
${_("Download Your Certificate")}
</a>
%endif
</div>
%elif is_generating:
<divclass="msg-content">
## Translators: This message appears to users when the system is processessing course certificates, which can take a few hours.
<h2class="title">${_("We're working on it...")}</h2>
<pclass="copy">${_("We're creating your certificate. You can keep working in your courses and a link to it will appear here and on your Dashboard when it is ready.")}</p>
</div>
<divclass="msg-actions"></div>
%else:
<divclass="msg-content">
<h2class="title">${_("Congratulations, you qualified for a certificate!")}</h2>
<pclass="copy">${_("You can keep working for a higher grade, or request your certificate now.")}</p>
<h2class="title">${_("Your certificate is available")}</h2>
<pclass="copy">
${_("You can keep working for a higher grade, or request your certificate now.")}
</p>
</div>
<divclass="msg-actions">
%if show_cert_web_view and cert_web_view_url:
<aclass="btn"href="${cert_web_view_url | h}"target="_blank"title="${_('View certificate in a new browser window or tab.')}">
${_("View Certificate")}
</a>
%elif download_url:
<aclass="btn"href="${download_url | h}"target="_blank"title="${_('PDF will open in a new browser window or tab.')}">
${_("Download Your Certificate")}
</a>
%endif
</div>
%elif is_generating:
<divclass="msg-content">
## Translators: This message appears to users when the system is processessing course certificates, which can take a few hours.
<h2class="title">${_("We're working on it...")}</h2>
<pclass="copy">${_("We're creating your certificate. You can keep working in your courses and a link to it will appear here and on your Dashboard when it is ready.")}</p>
</div>
<divclass="msg-actions"></div>
%else:
<divclass="msg-content">
<h2class="title">${_("Congratulations, you qualified for a certificate!")}</h2>
<pclass="copy">${_("You can keep working for a higher grade, or request your certificate now.")}</p>
<spanclass="eligibility_msg">${_("{student_name}, you are no longer eligible for credit in this course.").format(student_name=student.profile.name) | h}</span>
<spanclass="eligibility_msg">${_("{student_name}, you have met the requirements for credit in this course.").format(student_name=student.profile.name) | h}
${_("{a_start}Go to your dashboard{a_end} to purchase course credit.").format(
<spanclass="eligibility_msg">${_("{student_name}, you are no longer eligible for credit in this course.").format(student_name=student.profile.name) | h}</span>
<spanclass="eligibility_msg">${_("{student_name}, you have met the requirements for credit in this course.").format(student_name=student.profile.name) | h}
${_("{a_start}Go to your dashboard{a_end} to purchase course credit.").format(
@@ -8,11 +8,13 @@ from openedx.core.djangolib.markup import Text, HTML
<%blockname="pagetitle">${_("Page Not Found")}</%block>
<sectionclass="outside-app">
<h1>${_("Page not found")}</h1>
<p>${Text(_('The page that you were looking for was not found. Go back to the {link_start}homepage{link_end} or let us know about any pages that may have been moved at {email}.')).format(
<p>${Text(_('The page that you were looking for was not found. Go back to the {link_start}homepage{link_end} or let us know about any pages that may have been moved at {email}.')).format(