Use <span> for course preview’s university
The course’s university was displayed using a <a> tag that points to
nothing ('#'). There was some stanford specific behavior to replace that
<a> tag with a <span>. This commit removes that.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%namespace file='main.html' import="stanford_theme_enabled"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.core.urlresolvers import reverse
|
||||
@@ -26,11 +25,7 @@ from courseware.courses import course_image_url, get_course_about_section
|
||||
<p>${get_course_about_section(course, 'short_description')}</p>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
% if stanford_theme_enabled():
|
||||
<span class="university">${get_course_about_section(course, 'university')}</span>
|
||||
% else:
|
||||
<a href="#" class="university">${get_course_about_section(course, 'university')}</a>
|
||||
% endif
|
||||
<span class="university">${get_course_about_section(course, 'university')}</span>
|
||||
<span class="start-date">${course.start_date_text}</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user