Commit 207777fb by Calen Pennington

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

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