adding more details about the state of course.css_class

This commit is contained in:
Arjun Singh
2012-08-22 11:49:26 -07:00
parent 9a21c5d4a8
commit 23e3d371ef

View File

@@ -201,6 +201,11 @@ class CourseDescriptor(SequenceDescriptor):
# there are courses that change the number for different runs. This allows
# courses to share the same css_class across runs even if they have
# different numbers.
#
# TODO get rid of this as soon as possible or potentially build in a robust
# way to add in course-specific styling. There needs to be a discussion
# about the right way to do this, but arjun will address this ASAP. Also
# note that the courseware template needs to change when this is removed.
@property
def css_class(self):
return self.metadata.get('css_class', '')