@@ -52,57 +52,60 @@ from openedx.core.djangolib.markup import Text, HTML
...
@@ -52,57 +52,60 @@ from openedx.core.djangolib.markup import Text, HTML
</%block>
</%block>
<%blockname="bodyclass">view-in-course view-course-info ${course.css_class or ''}</%block>
<%blockname="bodyclass">view-in-course view-course-info ${course.css_class or ''}</%block>
<sectionclass="container">
<divclass="home">
<mainid="main"aria-label="Content"tabindex="-1">
<divclass="page-header-main">
<sectionclass="container">
<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>
<divclass="msg-content">
<pclass="copy">
<h2class="title">${_("Your certificate is available")}</h2>
${_("You can keep working for a higher grade, or request your certificate now.")}
<pclass="copy">
</p>
${_("You can keep working for a higher grade, or request your certificate now.")}
</div>
</p>
<divclass="msg-actions">
</div>
%if show_cert_web_view and cert_web_view_url:
<divclass="msg-actions">
<aclass="btn"href="${cert_web_view_url | h}"target="_blank"title="${_('View certificate in a new browser window or tab.')}">
%if show_cert_web_view and cert_web_view_url:
${_("View Certificate")}
<aclass="btn"href="${cert_web_view_url | h}"target="_blank"title="${_('View certificate in a new browser window or tab.')}">
</a>
${_("View Certificate")}
%elif download_url:
</a>
<aclass="btn"href="${download_url | h}"target="_blank"title="${_('PDF will open in a new browser window or tab.')}">
%elif download_url:
${_("Download Your Certificate")}
<aclass="btn"href="${download_url | h}"target="_blank"title="${_('PDF will open in a new browser window or tab.')}">
</a>
${_("Download Your Certificate")}
%endif
</a>
</div>
%endif
%elif is_generating:
</div>
<divclass="msg-content">
%elif is_generating:
## Translators: This message appears to users when the system is processessing course certificates, which can take a few hours.
<divclass="msg-content">
<h2class="title">${_("We're working on it...")}</h2>
## Translators: This message appears to users when the system is processessing course certificates, which can take a few hours.
<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>
<h2class="title">${_("We're working on it...")}</h2>
</div>
<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>
<divclass="msg-actions"></div>
</div>
%else:
<divclass="msg-actions"></div>
<divclass="msg-content">
%else:
<h2class="title">${_("Congratulations, you qualified for a certificate!")}</h2>
<divclass="msg-content">
<pclass="copy">${_("You can keep working for a higher grade, or request your certificate now.")}</p>
<h2class="title">${_("Congratulations, you qualified for a certificate!")}</h2>
</div>
<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}
<spanclass="eligibility_msg">${_("{student_name}, you are no longer eligible for credit in this course.").format(student_name=student.profile.name) | h}</span>
${_("{a_start}Go to your dashboard{a_end} to purchase course credit.").format(
<spanclass="eligibility_msg">${_("{student_name}, you have met the requirements for credit in this course.").format(student_name=student.profile.name) | h}
a_end="</a>"
${_("{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
...
@@ -8,11 +8,13 @@ from openedx.core.djangolib.markup import Text, HTML
<%blockname="pagetitle">${_("Page Not Found")}</%block>
<%blockname="pagetitle">${_("Page Not Found")}</%block>
<sectionclass="outside-app">
<mainid="main"aria-label="Content"tabindex="-1">
<h1>${_("Page not found")}</h1>
<sectionclass="outside-app">
<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(
<h1>${_("Page not found")}</h1>
link_start=HTML('<ahref="/">'),
<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(