Commit 7cab3869 by David Baumgold

Fall back on category is display_name is empty or unset

parent c43d36b7
......@@ -114,7 +114,7 @@ def xblock_handler(request, tag=None, package_id=None, branch=None, version_guid
return render_to_response('component.html', {
'preview': get_preview_html(request, component),
'editor': content,
'display_name': component.display_name,
'label': component.display_name or component.category,
})
elif request.method == 'DELETE':
delete_children = str_to_bool(request.REQUEST.get('recurse', 'False'))
......
......@@ -28,7 +28,7 @@
</div>
<div class="wrapper wrapper-component-action-header">
<div class="component-header">
${display_name}
${label}
</div>
<ul class="component-actions">
<li class="action-item action-edit">
......
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