})
+=======
+
})
+
+ % else:
+
+
})
+>>>>>>> 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.
% endif
@@ -162,9 +170,9 @@
${get_course_about_section(course, 'university')}
@@ -197,6 +205,7 @@
% endif
% if registration.is_rejected:
% endif
% if not registration.is_accepted and not registration.is_rejected:
diff --git a/lms/templates/discussion/index.html b/lms/templates/discussion/index.html
index 3b6937b7d5..de53433790 100644
--- a/lms/templates/discussion/index.html
+++ b/lms/templates/discussion/index.html
@@ -6,7 +6,7 @@
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%block name="bodyclass">discussion%block>
-<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.number) | h}%block>
+<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}%block>
<%block name="headextra">
<%static:css group='course'/>
diff --git a/lms/templates/discussion/single_thread.html b/lms/templates/discussion/single_thread.html
index 6aae08a7a7..5bd6c6ca03 100644
--- a/lms/templates/discussion/single_thread.html
+++ b/lms/templates/discussion/single_thread.html
@@ -7,7 +7,7 @@
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%block name="bodyclass">discussion%block>
-<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.number) | h}%block>
+<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}%block>
<%block name="headextra">
<%static:css group='course'/>
diff --git a/lms/templates/discussion/user_profile.html b/lms/templates/discussion/user_profile.html
index 1c1901c10b..dbfa79d4e7 100644
--- a/lms/templates/discussion/user_profile.html
+++ b/lms/templates/discussion/user_profile.html
@@ -4,7 +4,7 @@
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%block name="bodyclass">discussion%block>
-<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.number) | h}%block>
+<%block name="title">
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}%block>
<%block name="headextra">
<%static:css group='course'/>
diff --git a/lms/templates/instructor/staff_grading.html b/lms/templates/instructor/staff_grading.html
index fb6766fe15..fee2275927 100644
--- a/lms/templates/instructor/staff_grading.html
+++ b/lms/templates/instructor/staff_grading.html
@@ -7,7 +7,7 @@
<%static:css group='course'/>
%block>
-<%block name="title">
${_("{course_number} Staff Grading").format(course_number=course.number)}%block>
+<%block name="title">
${_("{course_number} Staff Grading").format(course_number=course.display_number_with_default)}%block>
<%include file="/courseware/course_navigation.html" args="active_page='staff_grading'" />
diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html
index 589d12666d..3ca3ae2d1d 100644
--- a/lms/templates/navigation.html
+++ b/lms/templates/navigation.html
@@ -50,7 +50,7 @@ site_status_msg = get_site_status_msg(course_id)
% if course:
-
${course.org}: ${course.number} ${course.display_name_with_default}
+
${course.display_org_with_default}: ${course.display_number_with_default} ${course.display_name_with_default}
% endif
% if user.is_authenticated():
diff --git a/lms/templates/open_ended_problems/combined_notifications.html b/lms/templates/open_ended_problems/combined_notifications.html
index 86eb4083dd..b1149194d9 100644
--- a/lms/templates/open_ended_problems/combined_notifications.html
+++ b/lms/templates/open_ended_problems/combined_notifications.html
@@ -7,7 +7,7 @@
<%static:css group='course'/>
%block>
-<%block name="title">
${_("{course_number} Combined Notifications").format(course_number=course.number)}%block>
+<%block name="title">
${_("{course_number} Combined Notifications").format(course_number=course.display_number_with_default)}%block>
<%include file="/courseware/course_navigation.html" args="active_page='open_ended'" />
diff --git a/lms/templates/open_ended_problems/open_ended_flagged_problems.html b/lms/templates/open_ended_problems/open_ended_flagged_problems.html
index ab60e54300..61ec49584c 100644
--- a/lms/templates/open_ended_problems/open_ended_flagged_problems.html
+++ b/lms/templates/open_ended_problems/open_ended_flagged_problems.html
@@ -7,7 +7,7 @@
<%static:css group='course'/>
%block>
-<%block name="title">
${_("{course_number} Flagged Open Ended Problems").format(course_number=course.number)}%block>
+<%block name="title">
${_("{course_number} Flagged Open Ended Problems").format(course_number=course.display_number_with_default)}%block>
<%include file="/courseware/course_navigation.html" args="active_page='open_ended_flagged_problems'" />
diff --git a/lms/templates/open_ended_problems/open_ended_problems.html b/lms/templates/open_ended_problems/open_ended_problems.html
index 56b269d8b7..e8496b6647 100644
--- a/lms/templates/open_ended_problems/open_ended_problems.html
+++ b/lms/templates/open_ended_problems/open_ended_problems.html
@@ -7,7 +7,7 @@
<%static:css group='course'/>
%block>
-<%block name="title">
${_("{course_number} Open Ended Problems").format(course_number=course.number)}%block>
+<%block name="title">
${_("{course_number} Open Ended Problems").format(course_number=course.display_number_with_default)}%block>
<%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 67274e30c9..9f8f4bb3d5 100644
--- a/lms/templates/static_htmlbook.html
+++ b/lms/templates/static_htmlbook.html
@@ -2,7 +2,8 @@
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
-<%block name="title">
${_('{course_number} Textbook').format(course_number=course.number)}
+<%block name="title">
${_('{course_number} Textbook').format(course_number=course.display_number_with_default)}
+
%block>
<%block name="headextra">
diff --git a/lms/templates/static_pdfbook.html b/lms/templates/static_pdfbook.html
index dfa7a47157..a38e9ff541 100644
--- a/lms/templates/static_pdfbook.html
+++ b/lms/templates/static_pdfbook.html
@@ -5,7 +5,8 @@
<%block name="title">
-
${_('{course_number} Textbook').format(course_number=course.number)}
+
${_('{course_number} Textbook').format(course_number=course.display_number_with_default)}
+
%block>
<%block name="headextra">
diff --git a/lms/templates/staticbook.html b/lms/templates/staticbook.html
index 980448b482..157af3a061 100644
--- a/lms/templates/staticbook.html
+++ b/lms/templates/staticbook.html
@@ -2,7 +2,7 @@
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
-<%block name="title">
${_("{course_number} Textbook").format(course_number=course.number)}%block>
+<%block name="title">
${_("{course_number} Textbook").format(course_number=course.display_number_with_default)}%block>
<%block name="headextra">
<%static:css group='course'/>
diff --git a/lms/templates/test_center_register.html b/lms/templates/test_center_register.html
index df6845e577..ba88cfd6dd 100644
--- a/lms/templates/test_center_register.html
+++ b/lms/templates/test_center_register.html
@@ -95,7 +95,7 @@
-
+
% if registration:
${_('Your Pearson VUE Proctored Exam Registration')}
@@ -442,7 +442,7 @@
% endif
-
${_("About {university} {course_number}").format(university=get_course_about_section(course, 'university'), course_number=course.number)}
+
${_("About {university} {course_number}").format(university=get_course_about_section(course, 'university'), course_number=course.display_number_with_default)}
% if course.has_ended():
${_('Course Completed:')} ${course.end_date_text}