diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index a45f6a93cb..17c3357861 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -88,7 +88,7 @@ %endif - ${_("You are registered for this course {course.display_number_with_default}"). + ${_("You are registered for this course {course.display_number_with_default}").format(course=course) | h} %if show_courseware_link: ${_("View Courseware")} diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index cc5646b3a4..2a52b50b09 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -2,11 +2,7 @@ <%inherit file="/main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="bodyclass">courseware ${course.css_class} -<<<<<<< HEAD -<%block name="title">${_("{course_number} Courseware").format(course_number=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Courseware ->>>>>>> add escaping +<%block name="title">${_("{course_number} Courseware").format(course_number=course.display_number_with_default) | h} <%block name="headextra"> <%static:css group='course'/> diff --git a/lms/templates/courseware/info.html b/lms/templates/courseware/info.html index 67bef227fa..0a520e0a1e 100644 --- a/lms/templates/courseware/info.html +++ b/lms/templates/courseware/info.html @@ -7,12 +7,7 @@ <%static:css group='course'/> -<<<<<<< HEAD -<%block name="title">${_("{course.number} Course Info").format(course=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Course Info ->>>>>>> add escaping - +<%block name="title">${_("{course.number} Course Info").format(course=course.display_number_with_default) | h} <%include file="/courseware/course_navigation.html" args="active_page='info'" /> <%! from courseware.courses import get_course_info_section diff --git a/lms/templates/courseware/mktg_course_about.html b/lms/templates/courseware/mktg_course_about.html index 71be39bc20..be623b5baa 100644 --- a/lms/templates/courseware/mktg_course_about.html +++ b/lms/templates/courseware/mktg_course_about.html @@ -8,11 +8,7 @@ <%inherit file="../mktg_iframe.html" /> -<<<<<<< HEAD -<%block name="title">${_("About {course_number}").format(course_number=course.display_number_with_default)} -======= -<%block name="title">About ${course.display_number_with_default | h} ->>>>>>> add escaping +<%block name="title">${_("About {course_number}").format(course_number=course.display_number_with_default) | h} <%block name="bodyclass">view-partial-mktgregister @@ -56,11 +52,7 @@
${_("You Are Registered")}
%endif %elif allow_registration: -<<<<<<< HEAD - ${_("Register for")} ${course.display_number_with_default} -======= - Register for ${course.display_number_with_default | h} ->>>>>>> add escaping + ${_("Register for")} ${course.display_number_with_default | h} %else:
${_("Registration Is Closed")}
%endif diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html index 85f96bfbd5..324eadf560 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -8,11 +8,7 @@ <%namespace name="progress_graph" file="/courseware/progress_graph.js"/> -<<<<<<< HEAD -<%block name="title">${_("{course_number} Progress").format(course_number=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Progress ->>>>>>> add escaping +<%block name="title">${_("{course_number} Progress").format(course_number=course.display_number_with_default) | h} <%! from django.core.urlresolvers import reverse diff --git a/lms/templates/courseware/syllabus.html b/lms/templates/courseware/syllabus.html index 49c76f13ac..e2f3c53739 100644 --- a/lms/templates/courseware/syllabus.html +++ b/lms/templates/courseware/syllabus.html @@ -6,11 +6,7 @@ <%static:css group='course'/> -<<<<<<< HEAD -<%block name="title">${_("{course.display_number_with_default} Course Info").format(course=course)} -======= -<%block name="title">${course.display_number_with_default | h} Course Info ->>>>>>> add escaping +<%block name="title">${_("{course.display_number_with_default} Course Info").format(course=course) | h} <%include file="/courseware/course_navigation.html" args="active_page='syllabus'" /> <%! diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 01d23e7e5d..1dfa66461c 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -140,27 +140,11 @@ % if course.id in show_courseware_links_for: -<<<<<<< HEAD -<<<<<<< HEAD - ${_('{course_number} {course_name} Cover Image').format(course_number='${course.number}', course_name='${course.display_name_with_default}')} + ${_('{course_number} {course_name} Cover Image').format(course_number='${course.number}', course_name='${course.display_name_with_default}') |h} % else:
${_('{course_number} {course_name} Cover Image').format(course_number='${course.number}', course_name='${course.display_name_with_default}')} -======= - ${course.display_number_with_default} ${course.display_name_with_default} Cover Image - - % else: -
- ${course.display_number_with_default} ${course.display_name_with_default} Cover Image ->>>>>>> add display_coursenumber and display_organization fields on the CourseModule, with some property accessors. Update LMS/CMS pages to use those display strings as appropraite. -======= - ${course.display_number_with_default | h} ${course.display_name_with_default} Cover Image - - % else: -
- ${course.display_number_with_default | h} ${course.display_name_with_default} Cover Image ->>>>>>> add escaping
% endif @@ -213,23 +197,15 @@ % endif % if registration.is_rejected:
-<<<<<<< HEAD -<<<<<<< HEAD

${_("Your registration for the Pearson exam has been rejected. Please {link_start}see your registration status details{link_end}.").format( link_start=''.format(url=testcenter_register_target), link_end='')} ${_("Otherwise {link_start}contact edX at {email}{link_end} for further help.").format( - link_start=''.format(email="exam-help@edx.org", about=get_course_about_section(course, 'university'), number=course.number), + link_start=''.format(email="exam-help@edx.org", about=get_course_about_section(course, 'university'), number=course.display_number_with_default), link_end='', email="exam-help@edx.org", )} -======= -

Your registration for the Pearson exam has been rejected. Please see your registration status details. Otherwise contact edX at exam-help@edx.org for further help.

->>>>>>> add display_coursenumber and display_organization fields on the CourseModule, with some property accessors. Update LMS/CMS pages to use those display strings as appropraite. -======= -

Your registration for the Pearson exam has been rejected. Please see your registration status details. Otherwise contact edX at exam-help@edx.org for further help.

->>>>>>> add escaping
% endif % if not registration.is_accepted and not registration.is_rejected: diff --git a/lms/templates/open_ended_problems/combined_notifications.html b/lms/templates/open_ended_problems/combined_notifications.html index 1b8898fedc..ce22a5c580 100644 --- a/lms/templates/open_ended_problems/combined_notifications.html +++ b/lms/templates/open_ended_problems/combined_notifications.html @@ -7,11 +7,7 @@ <%static:css group='course'/> -<<<<<<< HEAD -<%block name="title">${_("{course_number} Combined Notifications").format(course_number=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Combined Notifications ->>>>>>> add escaping +<%block name="title">${_("{course_number} Combined Notifications").format(course_number=course.display_number_with_default) | h} <%include file="/courseware/course_navigation.html" args="active_page='open_ended'" /> diff --git a/lms/templates/open_ended_problems/open_ended_problems.html b/lms/templates/open_ended_problems/open_ended_problems.html index 67c5ba8da3..68882984f5 100644 --- a/lms/templates/open_ended_problems/open_ended_problems.html +++ b/lms/templates/open_ended_problems/open_ended_problems.html @@ -7,11 +7,7 @@ <%static:css group='course'/> -<<<<<<< HEAD -<%block name="title">${_("{course_number} Open Ended Problems").format(course_number=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Open Ended Problems ->>>>>>> add escaping +<%block name="title">${_("{course_number} Open Ended Problems").format(course_number=course.display_number_with_default) | h} <%include file="/courseware/course_navigation.html" args="active_page='open_ended_problems'" /> diff --git a/lms/templates/static_htmlbook.html b/lms/templates/static_htmlbook.html index 2b7702f5a4..60421502e6 100644 --- a/lms/templates/static_htmlbook.html +++ b/lms/templates/static_htmlbook.html @@ -2,12 +2,7 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> -<<<<<<< HEAD -<%block name="title">${_('{course_number} Textbook').format(course_number=course.display_number_with_default)} - -======= -<%block name="title">${course.display_number_with_default | h} Textbook ->>>>>>> add escaping +<%block name="title">${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h} <%block name="headextra"> diff --git a/lms/templates/static_pdfbook.html b/lms/templates/static_pdfbook.html index e6cde45fd2..4e9f604a0c 100644 --- a/lms/templates/static_pdfbook.html +++ b/lms/templates/static_pdfbook.html @@ -3,16 +3,9 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%block name="title"> -<<<<<<< HEAD -${_('{course_number} Textbook').format(course_number=course.display_number_with_default)} - -======= - - - ${course.display_number_with_default | h} Textbook ->>>>>>> add escaping +${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h} <%block name="headextra"> diff --git a/lms/templates/staticbook.html b/lms/templates/staticbook.html index 443918ac75..09741e0a9e 100644 --- a/lms/templates/staticbook.html +++ b/lms/templates/staticbook.html @@ -2,11 +2,7 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> -<<<<<<< HEAD -<%block name="title">${_("{course_number} Textbook").format(course_number=course.display_number_with_default)} -======= -<%block name="title">${course.display_number_with_default | h} Textbook ->>>>>>> add escaping +<%block name="title">${_("{course_number} Textbook").format(course_number=course.display_number_with_default) | h} <%block name="headextra"> <%static:css group='course'/>