Fix up problem display to use the new metadata that's available

This commit is contained in:
Calen Pennington
2012-07-03 14:20:11 -04:00
parent 42cef5b788
commit 207777fbe1
2 changed files with 2 additions and 2 deletions

View File

@@ -194,7 +194,7 @@ class CapaModule(XModule):
as necessary based on the problem config and state.'''
html = self.lcp.get_html()
content = {'name': self.name,
content = {'name': self.metadata['display_name'],
'html': html,
'weight': self.weight,
}

View File

@@ -1,7 +1,7 @@
<%namespace name='static' file='static_content.html'/>
<h2 class="problem-header">
${ problem['name'] }
% if problem['weight']:
% if problem['weight'] != 1:
: ${ problem['weight'] } points
% endif