Commit 192d51bf by Chris Dodge

touch-ups per review feedback

parent c20ca2bf
...@@ -6,7 +6,6 @@ from path import path # NOTE (THK): Only used for detecting presence of syllabu ...@@ -6,7 +6,6 @@ from path import path # NOTE (THK): Only used for detecting presence of syllabu
import requests import requests
from datetime import datetime from datetime import datetime
import dateutil.parser import dateutil.parser
import cgi
from xmodule.modulestore import Location from xmodule.modulestore import Location
from xmodule.seq_module import SequenceDescriptor, SequenceModule from xmodule.seq_module import SequenceDescriptor, SequenceModule
...@@ -945,7 +944,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor): ...@@ -945,7 +944,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor):
Return a display course number if it has been specified, otherwise return the 'course' that is in the location Return a display course number if it has been specified, otherwise return the 'course' that is in the location
""" """
if self.display_coursenumber: if self.display_coursenumber:
return cgi.escape(self.display_coursenumber) return self.display_coursenumber
return self.number return self.number
...@@ -959,6 +958,6 @@ class CourseDescriptor(CourseFields, SequenceDescriptor): ...@@ -959,6 +958,6 @@ class CourseDescriptor(CourseFields, SequenceDescriptor):
Return a display organization if it has been specified, otherwise return the 'org' that is in the location Return a display organization if it has been specified, otherwise return the 'org' that is in the location
""" """
if self.display_organization: if self.display_organization:
return cgi.escape(self.display_organization) return self.display_organization
return self.org return self.org
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</a> </a>
%endif %endif
%else: %else:
<a href="#" class="register">${_("Register for {course.display_number_with_default}").format(course=course)}</a> <a href="#" class="register">${_("Register for {course.display_number_with_default}").format(course=course) | h}</a>
<div id="register_error"></div> <div id="register_error"></div>
%endif %endif
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<section class="introduction"> <section class="introduction">
<header> <header>
<hgroup> <hgroup>
<h2><a href="${reverse('dashboard')}">${get_course_about_section(course, 'university')} ${course.display_number_with_default | h} ${course.display_name_with_default}</a></h2> <h2><a href="${reverse('dashboard')}">${get_course_about_section(course, 'university')} ${course.display_number_with_default | h} ${course.display_name_with_default | h}</a></h2>
% if registration: % if registration:
<h1>${_('Your Pearson VUE Proctored Exam Registration')}</h1> <h1>${_('Your Pearson VUE Proctored Exam Registration')}</h1>
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
% endif % endif
<div class="details details-course"> <div class="details details-course">
<h4>${_("About {university} {course_number}").format(university=get_course_about_section(course, 'university'), course_number=course.course.display_number_with_default)}</h4> <h4>${_("About {university} {course_number}").format(university=get_course_about_section(course, 'university'), course_number=course.course.display_number_with_default) | h}</h4>
<p> <p>
% if course.has_ended(): % if course.has_ended():
<span class="label">${_('Course Completed:')}</span> <span class="value">${course.end_date_text}</span> <span class="label">${_('Course Completed:')}</span> <span class="value">${course.end_date_text}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment