Commit e7900859 by Calen Pennington

Remove the 'title' alias for lms.display_name

parent 3b7a589e
......@@ -135,7 +135,7 @@ def index(request):
return render_to_response('index.html', {
'new_course_template': Location('i4x', 'edx', 'templates', 'course', 'Empty'),
'courses': [(course.title,
'courses': [(course.lms.display_name,
reverse('course_index', args=[
course.location.org,
course.location.course,
......
......@@ -742,10 +742,6 @@ class CourseDescriptor(SequenceDescriptor):
return exams[0] if len(exams) == 1 else None
@property
def title(self):
return self.display_name
@property
def number(self):
return self.location.course
......
......@@ -95,7 +95,7 @@ def course_wiki_redirect(request, course_id):
root,
course_slug,
title=course_slug,
content="This is the wiki for **{0}**'s _{1}_.".format(course.org, course.title),
content="This is the wiki for **{0}**'s _{1}_.".format(course.org, course.lms.display_name),
user_message="Course page automatically created.",
user=None,
ip_address=None,
......
......@@ -282,7 +282,7 @@ def index(request, course_id, chapter=None, section=None,
context = {
'csrf': csrf(request)['csrf_token'],
'accordion': render_accordion(request, course, chapter, section, model_data_cache),
'COURSE_TITLE': course.title,
'COURSE_TITLE': course.lms.display_name,
'course': course,
'init': '',
'content': '',
......
......@@ -216,7 +216,7 @@
% endif
</p>
<h2 class="university">${get_course_about_section(course, 'university')}</h2>
<h3><a href="${course_target}">${course.number} ${course.title}</a></h3>
<h3><a href="${course_target}">${course.number} ${course.lms.display_name}</a></h3>
</hgroup>
<%
......
......@@ -26,7 +26,7 @@
<div class="sidebar"></div>
<div class="discussion-column">
<div class="discussion-article blank-slate">
<h1>${course.title} Discussion</h1>
<h1>${course.lms.display_name} Discussion</h1>
</div>
</div>
......
......@@ -41,7 +41,7 @@ site_status_msg = get_site_status_msg(course_id)
<h1 class="logo"><a href="${reverse('root')}"><img src="${static.url(branding.get_logo_url(request.META.get('HTTP_HOST')))}"/></a></h1>
% if course:
<h2><span class="provider">${course.org}:</span> ${course.number} ${course.title}</h2>
<h2><span class="provider">${course.org}:</span> ${course.number} ${course.lms.display_name}</h2>
% endif
<ol class="left find-courses-button">
......
......@@ -93,7 +93,7 @@
<section class="introduction">
<header>
<hgroup>
<h2><a href="${reverse('dashboard')}">${get_course_about_section(course, 'university')} ${course.number} ${course.title}</a></h2>
<h2><a href="${reverse('dashboard')}">${get_course_about_section(course, 'university')} ${course.number} ${course.lms.display_name}</a></h2>
% if registration:
<h1>Your Pearson VUE Proctored Exam Registration</h1>
......
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