Fix up problem display to use the new metadata that's available
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user